AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   menu for biohazard (https://forums.alliedmods.net/showthread.php?t=153624)

Samsoniq 03-26-2011 17:05

menu for biohazard
 
case 1: {

#if defined BIOHAZARD_SUPPORT
if(is_user_zombie(id))
{
ColorChat (id, RED , "zombie can't by that !");
return PLUGIN_HANDLED;
}
#endif
if( cs_get_user_bpammo(id, CSW_HEGRENADE) >= 1 )
{
allready_have( id );
return PLUGIN_HANDLED;
}

new money = fm_get_user_money(id);
new costa = get_pcvar_num(g_he);

if( money >= costa )
{
fm_give_item( id, "weapon_hegrenade");
fm_set_user_money(id, money - costa );

}
else
{
nomoney ( id );
}
}




:(
what i do wrong?


All times are GMT -4. The time now is 14:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.