PDA

View Full Version : Spam


vincee
30/12/2011, 07:38 PM
Can someone tell me how to make SendClientMessage not spam when your on a pickup.

I have >


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?

Mosslah
31/12/2011, 02:31 PM
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.