Thanks, perfect!
Another thing, i made an gamemenu for jailbreak and i'm having troubles to give the CTs godmode on specific games.
The fm_set_user_godmode, set_user_godmode didn't work and the Ham_TakeDamage_Pre bugged alot :s
Help?
Example Game Action:
PHP Code:
public ZombieBombsGame(id)
{
g_iCurrentGame = GAME_ZMBOMBS
new iPlayers[32]
new iNum
new id
get_players( iPlayers, iNum )
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i]
if( !is_user_alive( id ) )
{
continue;
}
set_hudmessage ( 255, 64, 64, -1.0, 0.35, 0, 0.1, 5.0, 0.1, 0.1, -1 )
show_hudmessage ( 0, "[SG]: ZombieBomb Game Started!")
strip_user_weapons( id )
if (cs_get_user_team(id) == CS_TEAM_CT)
{
give_item(id, "weapon_knife")
set_user_godmode(id, 1)
}
if (cs_get_user_team(id) == CS_TEAM_T)
{
give_item(id, "weapon_hegrenade")
cs_set_user_bpammo( id, CSW_HEGRENADE, 200 )
}
}
}
__________________