It is currently 22 Feb 2019 20:35



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
 Cerere plugin steam bonus 
Author Message
Fost moderator
Fost moderator
User avatar

Joined: 25 Aug 2014 20:31
Posts: 6165
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Roley Roley
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Christmas, A k c 3 n 7
Fond eXtream: 0
Quote:
WoW cat de repede ai raspuns , felicitari Man
Man iti multumesc din suflet !

Nu am intrat de cateva zile, ai avut noroc :grin:
Ia vezi
| Afiseaza codul
#include amxmodx
#include amxmisc
#include cstrike
#include fun
#include hamsandwich
#include ColorChat

#pragma tabsize 0

public plugin_init() {

RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1);
}

public PlayerPostSpawn(id)
{
if (!is_user_connected(id) || !is_user_steam(id))
return HAM_HANDLED;

new MENU = menu_create ( "\ySTEAM BONUS \wMENU", "BONUS" );

menu_additem ( MENU, "ARME", "1", 0 );

menu_setprop ( MENU, MPROP_EXIT, MEXIT_ALL );

menu_display ( id, MENU, 0 );
return HAM_IGNORED;
}

public BONUS(id,MENU,item)
{
if (!is_user_alive(id) || !is_user_steam(id))
return PLUGIN_HANDLED;

if (item == MENU_EXIT)
return PLUGIN_HANDLED;

new data [6], iName [64];
new access, callback;

menu_item_getinfo ( MENU, item, access, data,5, iName, 63, callback);

new key = str_to_num(data);

switch(key)
{
case 1:
{
ARME(id);
ColorChat (id, GREEN, "^1[^4Steam Bonus^1] Ai ales ^4ARME^1!");
}
}
menu_destroy ( MENU );
return PLUGIN_HANDLED;
}

public ARME(id)
{

new menu = menu_create ("\rMENIU ARME", "ALEGE");

menu_additem(menu, "\wGRENADA", "1");
menu_additem(menu, "\wARMURA", "2");
menu_additem(menu, "\yM4A1", "3");
menu_additem(menu, "\yAK-47", "4");
menu_additem(menu, "\wGALIL (\ronly t)", "5");
menu_additem(menu, "\wFAMAS (\ronly ct)", "6");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public ALEGE(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

new name[32]
get_user_name(id, name, 31);

switch (key)
{
case 1:
{
if( is_user_alive( id ) )
{
give_item(id, "weapon_hegrenade")
}
}

case 2:
{
if( is_user_alive( id ) )
{
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
}
}

case 3:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 70);

ColorChat(id, GREEN, "^x03 Ai ales ^x04 M4A1 + DEAGLE")
}
}

case 4:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 70);

ColorChat(id, GREEN, "^x03 Ai ales ^x04 AK47 + DEAGLE")
}
}
case 5:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
// give_item(id, "weapon_knife");
// give_item(id, "weapon_deagle");
// give_item(id, "weapon_awp");
// cs_set_user_bpammo(id, CSW_AWP, 90);
// cs_set_user_bpammo(id, CSW_DEAGLE, 70);

if(!(cs_get_user_team(id) == CS_TEAM_T))
return PLUGIN_HANDLED

give_item(id, "weapon_galil")
cs_set_user_bpammo(id, CSW_GALIL, 30)
ColorChat(id, GREEN, "^x03 Ai ales ^x04 GALIL !")
return PLUGIN_CONTINUE
}
}
case 6:
{

if( is_user_alive( id ) )
{
strip_user_weapons(id)

if(!(cs_get_user_team(id) == CS_TEAM_CT))
return PLUGIN_HANDLED

give_item(id, "weapon_galil")
cs_set_user_bpammo(id, CSW_FAMAS, 30)
ColorChat(id, GREEN, "^x03 Ai ales ^x04 FAMAS !")
return PLUGIN_CONTINUE
}
}
}

menu_destroy(menu);
return PLUGIN_HANDLED;
}

stock bool:is_user_steam(id)
{
static dp_pointer
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id)
server_exec()
return (get_pcvar_num(dp_pointer) == 2) ? true : false
}
return false
}

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI



01 Feb 2019 20:37
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
tot e greșit cum îl faci

scripting/cerere-modificare-plugin-t361833.html#p2751642


01 Feb 2019 20:55
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0

Joined: 16 Aug 2009 20:28
Posts: 81
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Fond eXtream: 0
L E V I N wrote:
omule,ai făcut cerere,ți s-a răspuns acolo,nu mai spama


Imi cer scuze de Spam .
te rog invata-ma daca pluginul are eroare cum sa procedez sa dai informatii despre acea eroare , poate se rezolva .
Multumesc !

De fapt Trebuia sa scriu...
Multumesc ambilor pentru implicare , in baza acestu-i topic am primit exact ceea ce doream.
Multumesc ExtreamCS , ai oameni de baza , si intelegatori.
Tot asa !....


03 Feb 2019 23:00
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Baidu [Spider], Boss de Boss, iriminescu0132 and 80 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group