28.10.2013, 01:45
SendClientMessageToAll would be better,
if it is GameTextForAll it will disturb another Player, so try using SendClientMessageToAll,
and it must be in OnPlayerConnect not OnPlayerSpawn because if it is OnPlayerSpawn,
the Message will send after you Spawned,
if it is GameTextForAll it will disturb another Player, so try using SendClientMessageToAll,
and it must be in OnPlayerConnect not OnPlayerSpawn because if it is OnPlayerSpawn,
the Message will send after you Spawned,
pawn Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
new string[1200];
GetPlayerName(playerid, name, sizeof(name));
if(PlayerLogged[playerid] == 1)
{
if(!strcmp(name,"[COD]Alex", true))
{
format(string, sizeof(string), "{FF0000}Owner {EEEEEE}%s (ID: {FF0000}%d{EEEEEE}) has joined the server.", name, playerid);
SendClientMessageToAll(-1, string);
}
}
return 1;
}