26.09.2011, 22:48
conseguir fazer sem uso de loops:
pawn Код:
new bool: carol[MAX_PLAYERS];
public OnPlayerRequestClass(plauerid, classid)
{
carol[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
carol[playerid] = false;
return
}
public OnPlayerText(playerid, text[])
{
if(carol[playerid])
{
SendClientMessage(playerid, -1, text);
return 0;
}
return 1;
}