#1

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?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)