30.08.2011, 03:08
What I mean is:
pawn Код:
new Jacked[MAX_PLAYERS];
Jacked[playerid] = 0;//OnPlayerConnect
if(Jacked[playerid] != 0)//OnPlayerText
{
SendClientMessage(Jacked[playerid],color,text);
}
CMD:fbilisten(playerid,params[])
{
if(PlayerInfo[playerid][pMember] != 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "You're not FBI!");
if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTRED, "/fbilisten <id>");
//Use IsNumeric or sscanf
if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, COLOR_LIGHTRED, "blahblahblah");
Jacked[strval(params)] = playerid;
return 1;
}