09.11.2012, 01:50
pawn Код:
new pLogged[MAX_PLAYERS];
pawn Код:
pLogged[playerid] = 1;
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(pLogged == 1)
{
format(string, sizeof(string), "%s says %s", name, text);
SendClientMessageToAll(-1, string);
}
else
{
SendClientMessage(playerid, -1, "You must be logged in to talk!");
}
return 0;
}