OnPlayerText Spamming Problem
#1

Hello guys, so i was wanted to show playerID in his/her name when he type anything,, like

Ryder[0]: HI i am ryder!

and scripted it and compiled without any error or warnings but it gives me that:



it spam the name 2 times, once with the id and once without the id.

here's the code:

PHP код:
public OnPlayerText(playeridtext[])

   new 
gangstring[128];
   
format(gangstringsizeof(gangstring), "[%d] %s",playerid,  text);
   
SendPlayerMessageToAll(playeridgangstring);
   return 
1;

Reply


Messages In This Thread
OnPlayerText Spamming Problem - by RyderX - 30.01.2017, 13:51
Re: OnPlayerText Spamming Problem - by jlalt - 30.01.2017, 13:53
Re: OnPlayerText Spamming Problem - by Ultraz - 30.01.2017, 13:58
Re: OnPlayerText Spamming Problem - by AndreiWow - 30.01.2017, 13:58
Re: OnPlayerText Spamming Problem - by RyderX - 30.01.2017, 14:03
Re: OnPlayerText Spamming Problem - by DaniceMcHarley - 30.01.2017, 14:34
Re: OnPlayerText Spamming Problem - by AndreiWow - 30.01.2017, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)