Help please :)
#4

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;
}
UNTESTED !!
Reply


Messages In This Thread
Help please :) - by Takumi.WS - 27.07.2009, 21:41
Re: Help please :) - by Takumi.WS - 27.07.2009, 23:47
Re: Help please :) - by yezizhu - 28.07.2009, 00:23
Re: Help please :) - by coole210 - 28.07.2009, 01:38
Re: Help please :) - by coole210 - 28.07.2009, 01:43
Re: Help please :) - by Takumi.WS - 28.07.2009, 01:47

Forum Jump:


Users browsing this thread: 2 Guest(s)