OnPlayerText
#1

Hello so i wanted to make if a player types something it will be like DarkLored (1): Test

so i tried to do this on player text but it duplicates the texts for exsample

DarkLored:test
Darklored (1):test

here is the code i am using for this

pawn Код:
format(string, sizeof (string), "%s (%d){FFFFFF}: %s",GetName(playerid), playerid, text);
    SendClientMessageToAll(playercolor, string);
Reply
#2

OnPlayerText must return 0 so the native SA:MP text message is not sent.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)