SA-MP Forums Archive
Help, onplayertext - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help, onplayertext (/showthread.php?tid=157638)



Help, onplayertext - hab2ever - 07.07.2010

Hey guys i have add this

Код:
public OnPlayerText(playerid, text[])
{
 	new textstring[128];
        format(textstring, sizeof(textstring), "[%i] %s", playerid, text);
        SendPlayerMessageToAll(playerid, textstring);
	return 1;
}
And it's send double message



And i want only with player id dont want double

So help me please

Sorry for my bad english


Re: Help, onplayertext - KnooL - 07.07.2010

Use
pawn Код:
return 0;
instead of
pawn Код:
return 1;



Re: Help, onplayertext - Hiddos - 07.07.2010

return 1; < This makes OnPlayerText execute the standard text, along with the other options you wanted to be executed.

return 0; < This make OnPlayerText not to execute the standard text, but still executes the option you wanted to be executed.


Re: Help, onplayertext - hab2ever - 07.07.2010

Thanks, mate's