Spam - 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: Spam (
/showthread.php?tid=307512)
Spam -
vincee - 30.12.2011
Can someone tell me how to make SendClientMessage not spam when your on a pickup.
I have >
pawn Код:
if(pickupid == bleugh)
{
SendClientMessage(playerid, COLOR_YELLOW, "(AH-INFO) Use <FFFFFF>/enter <F230AA> to enter the building!");
}
Now when I go onto that pickup, it spams crazy.
Maybe Timers?
Re: Spam -
Mosslah - 31.12.2011
pawn Код:
if(pickupid == bleugh)
{
SendClientMessage(playerid, COLOR_YELLOW, "(AH-INFO) Use <FFFFFF>/enter <F230AA> to enter the building!");
return 1;
}
I have a similar system to this in my script, and that doesn't spam if I add return 1;
However, you should just use Create3DTextLabel, it's much easier and doesn't require a pickup. Plus, you can set the draw distance without having to have someone enter a pickup just to see the command to enter the building.