28.07.2009, 01:43
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new tmp[50];
if(gTeam[playerid]==TEAM_COP)
{
if(GetPlayerJobID(playerid) == TEAM_COP)
{
format(tmp,sizeof(tmp),"[ ! ] Welcome to Police Officer: %s",Name(playerid));
SendClientMessageToAll(TEAM_POLICE_COLOR,tmp);
return 1;
}
else
{
SendClientMessage(playerid,c_r,"You are not a cop!");
}
return 0;
}
return 1;
}