[Konstantino, I need you]
#1

Hello,

My somebody help me out?

When I connect if it detects my name and I chat
Change my name to Owner %s

Thanks.
Reply
#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
#3

Oh, great thanks +1 Rep-
Reply
#4

Next time go and ask Konstantino!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)