SA-MP Forums Archive
About on player text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About on player text (/showthread.php?tid=500387)



About on player text - DemME - 12.03.2014

Im gonna begin a RP mode, so I just typed a new on player text

PHP код:
public OnPlayerText(playerid, text[])
{
    new 
message[128];
    
format(message, sizeof(message), "[ID:%d] %s says: %s",playerid, GetName(playerid), text);
    
ProxDetector(30.0, playerid, message, -1);
    return 
0;
} 
everything is okay, but why does it types in-game twice ( white color and the player's name color ).