1) Когато си терорист и избереш "Traps Boss" и те завърти СТ не ресва скин-а. Демек на следващия рунд се запазва скина na терориста..
2) Когато избереш Free for knife нито спира капаните, нито маха оръжията на СТ...
3) Ако може да се добави още една опция "Agent 007 [USP 3 bullets | 50 HP]" демек да му даде пистолет и да му смъкне кръвта на 50.
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#include <fun>
new bool:checkirane=false;
#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))
public plugin_init()
{
register_plugin("Spawn terro menu","1.0","BaDBlo0D");
RegisterHam(Ham_Spawn,"player","fwdPlayerSpawn",1);
register_event("HLTV", "eventRoundStart", "a", "1=0", "2=0");
}
public plugin_precache()
{
precache_model("models/player/zaken/zaken.mdl");
precache_model("models/player/ghost/ghost.mdl");
}
public eventRoundStart(id) {
checkirane = false;
set_task(15.0, "functask");
}
public functask() {
checkirane=true;
}
public fwdPlayerSpawn(id)
{
if(!is_user_alive(id))
return 1;
if(get_user_team(id) == 1 && !checkirane)
{
spawnmenu(id);
}
return 1;
}
public spawnmenu(id)
{
new menu = menu_create("\rquadGS.com\d ~\w Choose gamemode","spawnmenuitems")
menu_additem(menu,"\wTraps \r[Boss]","1",0)
menu_additem(menu,"\wFree for Knife","2",0)
if(get_user_flags(id) & ADMIN_RESERVATION) {
menu_additem(menu,"\rGhost \d[80 percent Invisible]","3",0); }
else {
menu_additem(menu,"\dGhost \r[VIP/Admin Only]","3",0); }
menu_setprop(menu,MPROP_EXIT,MEXIT_NEVER)
menu_display(id,menu,0)
}
public spawnmenuitems(id,menu,item)
{
new data[6],iName[64],access,callback
menu_item_getinfo(menu,item,access,data,5,iName,63,callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(checkirane) chatcolor(id,"!g[DR]!t 15!n seconds have passed, you can't use the menu!");
else
{
cs_set_user_model(id, "zaken");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
set_user_health ( id, 750 );
chatcolor(0,"!g[DR]!n Terrorist is the pirate king!t Zaken (750 Health).!n Try to kill him!");
set_hudmessage(0, 153, 255, 0.02, -1.0, 0, 6.0, 12.0, 0.1, 0.2, 4);
show_hudmessage(0, "The Terrorist is raid boss^nWatch out for the traps!");
}
}
case 2:
{
if(checkirane) chatcolor(id,"!g[DR]!t 15!n seconds have passed, you can't use the menu!");
else
{
client_cmd(id, "say /free")
chatcolor(0,"!g[DR]!t Knife round!n [No Guns & No Traps]");
}
}
case 3:
{
if(checkirane) chatcolor(id,"!g[DR]!t 15!n seconds have passed, you can't use the menu!");
else
{
if(get_user_flags(id) & ADMIN_RESERVATION)
{
cs_set_user_model(id, "ghost");
client_cmd(id, "say /ghost")
chatcolor(0,"!g[DR]!t Terrorist is Ghost!n [!g 80 percent!n invisible with !t250 Health & 500 Speed!n] [No Traps]");
}
else
{
chatcolor(id,"!g[DR]!t This option is available only for VIPs/Admins!n, Visit:!g vip.quadGS.com");
if(!checkirane) spawnmenu(id);
}
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED_MAIN;
}
stock chatcolor(id, const input[], any:...)
{
static count, players[32], msg[191], msgSayText;
vformat(msg, 190, input, 3)
if (!msgSayText)
msgSayText = get_user_msgid("SayText");
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
if (id)
{
players[0] = id;
count = 1;
}
else
get_players(players, count, "c");
for (new i = 0; i < count; i++)
{
message_begin(MSG_ONE_UNRELIABLE, msgSayText, _, 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\\ lang1026\\ f0\\ fs16 \n\\ par }
*/