[Konstantino, I need you]
#2

Use OnPlayerText()
Код:
OnPlayerText(playerid, text[])
{
   new PName[MAX_PLAYER_NAME];
   new string[128];
   GetPlayerName(playerid, PName, sizeof(PName));
   if(strcmp(PName, "YOUR NAME",true))
   {
       format(string, sizeof(string), "Owner %s says: %s", PName, text);
       SendClientMessageToAll(SOME COLOUR, string);
   }
   
   return 1;
}
EDIT:I think you should use strcmp(),did you test this code ig?
Reply


Messages In This Thread
[Konstantino, I need you] - by Alex_Obando - 27.10.2013, 19:14
Re: [Konstantino, I need you] - by Tagathron - 27.10.2013, 19:21
Respuesta: [Konstantino, I need you] - by Alex_Obando - 27.10.2013, 19:27
Re: [Konstantino, I need you] - by doreto - 27.10.2013, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)