26.06.2009, 23:19
Okay i got this job include and i implemented it to my gamemode.
How do i make it so if they try to spawn as TEAM_POLICE and they are not a cop they get kicked?
Here's what i got so far (i didn't even really start) :
How do i make it so if they try to spawn as TEAM_POLICE and they are not a cop they get kicked?
Here's what i got so far (i didn't even really start) :
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerJobID == 1)
{
//if there not police (ID 1) they should get kicked, if they are on TEAM_POLICE and there job ID is 1 they are allowed to spawn without being kicked. So what do i put here?
}
return 1;
}