28.07.2009, 01:38
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(gTeam[playerid] == TEAM_COP)
{
if(GetPlayerJobID(playerid) == TEAM_COP)
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"[ ! ] Welcome to officer: %s",name);
SendClientMessageToAll(TEAM_COP_COLOR,string);
return 1;
}
else SendClientMessage(playerid,COLOR_RED,"[ ! ] You are not a cop !");
return 0;
}