Detecting name wont work :/
#3

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,


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


Messages In This Thread
Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:31
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 01:41
Re: Detecting name wont work :/ - by SAMProductions - 28.10.2013, 01:45
Respuesta: Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:47
Re: Detecting name wont work :/ - by SAMProductions - 28.10.2013, 01:51
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 01:53
Respuesta: Detecting name wont work :/ - by Alex_Obando - 28.10.2013, 01:55
Re: Detecting name wont work :/ - by EiresJason - 28.10.2013, 02:03
Re : Detecting name wont work :/ - by Matnix - 28.10.2013, 02:08
Re: Re : Detecting name wont work :/ - by cessil - 28.10.2013, 02:24

Forum Jump:


Users browsing this thread: 2 Guest(s)