It is currently 16 Jan 2019 10:06






Reply to topic  [ 2 posts ] 
 Modificare Echipe 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 14 May 2017 22:26
Posts: 7
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut! Asi vrea sa fie pentru toate echipele nu doar pentru CT

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < cstrike >
#include < fakemeta_util >
#include < hamsandwich >
#include < fun >

#define PLUGIN "@"
#define VERSION "@"
#define AUTHOR "@"

new const Tag[] = "[CSO]"

new bool:AlreadyHave[33];

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

// Add your code here...
register_clcmd("say /weapons","ClcmdWeapons");
register_clcmd("say /arme","ClcmdWeapons");
register_clcmd("say /guns","ClcmdWeapons");

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

public ClcmdWeapons(id) {
if(AlreadyHave[id] ) {
ChatColor(id, "!g%s !tAi ales aceasta runda o arma deja.", Tag);
return PLUGIN_HANDLED;
}
if( get_user_team( id ) == 0 ) {
WeaponsMenu(id)
}
return PLUGIN_HANDLED;
}

public Spawn(id) {
if(is_user_alive(id)) {
give_item(id, "weapon_knife");
AlreadyHave[id] = false;

if( get_user_team( id ) == 0 ) {
WeaponsMenu(id);

give_item( id, "weapon_elite" )
give_item( id, "weapon_hegrenade" )
give_item( id, "weapon_flashbang" )
give_item( id, "weapon_smokegrenade" )
cs_set_user_bpammo( id, CSW_ELITE, 120 )
cs_set_user_bpammo( id, CSW_HEGRENADE, 1 )
cs_set_user_bpammo( id, CSW_FLASHBANG, 1 )
cs_set_user_bpammo( id, CSW_SMOKEGRENADE, 1 )
}
}
}

public WeaponsMenu(id) {
new menu = menu_create ("\rWeapons Menu", "CaseMenu");

menu_additem(menu, "\r[\yHuman\r] \yWeapons ", "1");

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

return 1;
}

public CaseMenu(id, menu, item) {
if(item == MENU_EXIT) {
menu_destroy (menu);
return 1;
}
switch(item)
{
case 0: {
MenuHunter(id);
}
}
menu_destroy (menu);
return 1;

}



public MenuHunter(id) {
new menu = menu_create ("\rWeapon List:", "CaseArmeHunter");

menu_additem(menu, "\r[\yHuman\r] \yM4A1", "1");
menu_additem(menu, "\r[\yHuman\r] \yAk47", "2");
menu_additem(menu, "\r[\yHuman\r] \yMp5", "3");
menu_additem(menu, "\r[\yHuman\r] \yXM1014", "4");
menu_additem(menu, "\r[\yHuman\r] \yM3", "5");

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

return 1;
}

public CaseArmeHunter(id, menu, item) {
if(item == MENU_EXIT) {
menu_destroy (menu);
return 1;
}
if(!is_user_alive(id)) {
ChatColor(id, "!g%s !nNu-ti poti alege arma atunci cand esti mort.", Tag);
return 1;
}
switch(item)
{
case 0: {
give_item( id, "weapon_m4a1" )
cs_set_user_bpammo( id, CSW_M4A1, 300 )
AlreadyHave[id] = true;
}
case 1: {
give_item( id, "weapon_ak47" )
cs_set_user_bpammo( id, CSW_AK47, 300 )
AlreadyHave[id] = true;
}
case 2: {
give_item( id, "weapon_mp5navy" )
cs_set_user_bpammo( id, CSW_MP5NAVY, 300 )
AlreadyHave[id] = true;
}
case 3: {
give_item( id, "weapon_xm1014" )
cs_set_user_bpammo( id, CSW_XM1014, 300 )
AlreadyHave[id] = true;
}
case 4: {
give_item( id, "weapon_m3" )
cs_set_user_bpammo( id, CSW_M3, 300 )
AlreadyHave[id] = true;
}
}
menu_destroy (menu);
return 1;

}

stock ChatColor(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4"); // Green Color
replace_all(msg, 190, "!n", "^1"); // Default Color
replace_all(msg, 190, "!t", "^3"); // Team Color

if (id) players[0] = id; else get_players(players, count, "ch"); {
for (new i = 0; i < count; i++) {
if (is_user_connected(players[i])) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/


PS:Va multumesc de raspunsuri!


12 Jan 2019 09:47
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1666
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
| Afiseaza codul
Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < fun >

#define PLUGIN "@"
#define VERSION "@"
#define AUTHOR "@"

new const Tag[] = "[CSO]"

new bool:AlreadyHave[33];

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   // Add your code here...
   register_clcmd("say /weapons","ClcmdWeapons");
   register_clcmd("say /arme","ClcmdWeapons");
   register_clcmd("say /guns","ClcmdWeapons");
   
   RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}

public ClcmdWeapons(id) {
   if(AlreadyHave[id] ) {
      ChatColor(id, "!g%s !tAi ales aceasta runda o arma deja.", Tag);
      return PLUGIN_HANDLED;
   }
   
   WeaponsMenu(id)
   
   return PLUGIN_HANDLED;
}

public Spawn(id) {
   if(is_user_alive(id)) {
      give_item(id, "weapon_knife");
      AlreadyHave[id] = false;
      
      WeaponsMenu(id);
      
      give_item( id, "weapon_elite" )
      give_item( id, "weapon_hegrenade" )
      give_item( id, "weapon_flashbang" )
      give_item( id, "weapon_smokegrenade" )
      
      cs_set_user_bpammo( id, CSW_ELITE, 120 )
      cs_set_user_bpammo( id, CSW_HEGRENADE, 1 )
      cs_set_user_bpammo( id, CSW_FLASHBANG, 1 )
      cs_set_user_bpammo( id, CSW_SMOKEGRENADE, 1 )
   }
}

public WeaponsMenu(id) {
   new menu = menu_create ("\rWeapons Menu", "CaseMenu");
   
   menu_additem(menu, "\r[\yHuman\r] \yWeapons ", "1");
   
   menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
   menu_display(id, menu, 0 );
   
   return 1;
}

public CaseMenu(id, menu, item) {
   if(item == MENU_EXIT) {
      menu_destroy (menu);
      return 1;
   }
   switch(item)
   {
      case 0: {
         MenuHunter(id);
      }
   }
   menu_destroy (menu);
   return 1;
   
}

public MenuHunter(id) {
   new menu = menu_create ("\rWeapon List:", "CaseArmeHunter");
   
   menu_additem(menu, "\r[\yHuman\r] \yM4A1", "1");
   menu_additem(menu, "\r[\yHuman\r] \yAk47", "2");
   menu_additem(menu, "\r[\yHuman\r] \yMp5", "3");
   menu_additem(menu, "\r[\yHuman\r] \yXM1014", "4");
   menu_additem(menu, "\r[\yHuman\r] \yM3", "5");
   
   menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
   menu_display(id, menu, 0 );
   
   return 1;
}

public CaseArmeHunter(id, menu, item) {
   if(item == MENU_EXIT) {
      menu_destroy (menu);
      return 1;
   }
   if(!is_user_alive(id)) {
      ChatColor(id, "!g%s !nNu-ti poti alege arma atunci cand esti mort.", Tag);
      return 1;
   }
   switch(item)
   {
      case 0: {
         give_item( id, "weapon_m4a1" )
         cs_set_user_bpammo( id, CSW_M4A1, 300 )
         AlreadyHave[id] = true;
      }
      case 1: {
         give_item( id, "weapon_ak47" )
         cs_set_user_bpammo( id, CSW_AK47, 300 )
         AlreadyHave[id] = true;
      }
      case 2: {
         give_item( id, "weapon_mp5navy" )
         cs_set_user_bpammo( id, CSW_MP5NAVY, 300 )
         AlreadyHave[id] = true;
      }
      case 3: {
         give_item( id, "weapon_xm1014" )
         cs_set_user_bpammo( id, CSW_XM1014, 300 )
         AlreadyHave[id] = true;
      }
      case 4: {
         give_item( id, "weapon_m3" )
         cs_set_user_bpammo( id, CSW_M3, 300 )
         AlreadyHave[id] = true;
      }
   }
   menu_destroy (menu);
   return 1;
   
}

stock ChatColor(const id, const input[], any:...) {
   new count = 1, players[32];
   static msg[191];
   vformat(msg, 190, input, 3);
   
   replace_all(msg, 190, "!g", "^4"); // Green Color
   replace_all(msg, 190, "!n", "^1"); // Default Color
   replace_all(msg, 190, "!t", "^3"); // Team Color
   
   if (id) players[0] = id; else get_players(players, count, "ch"); {
      for (new i = 0; i < count; i++) {
         if (is_user_connected(players[i])) {
            message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
            write_byte(players[i]);
            write_string(msg);
            message_end();
         }
      }
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


12 Jan 2019 14:36
Profile multumesc ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 33 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