Hi i need help about this :
I have a plugin and i want it to work only with CT.
Because i have every 3 rounds the team switch and if the player have the item he just keep it.
I want it to get remove from the player when the his team switch to T and then give him back when he is CT and keep happing that way.
I did try this but didn't work :
PHP Code:
public FwdPlayerSpawnPost(id)
{
if(cs_get_user_team(id) == CS_TEAM_T )
{
g_KNIFE[id] = false
g_hasSpeed[id] = false
}
}