pickup help - 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: pickup help (
/showthread.php?tid=564377)
pickup help -
Nabster - 21.02.2015
Is it possible to stop displaying dialog every second when we use pickup because its annoying as it freezes you every second and you can't escape the pickup because of it..
Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
if (pickup == Pickup_Nuke)
{
ShowPlayerDialog(playerid,DIALOG_WEAPONS,DIALOG_STYLE_LIST,"Super Weapons", "Nuke\nAnthrax\nAdin destroyer", "Select", "Close");
SendClientMessage(playerid,COLOR_APPWORKSPACE,"You are now viewing super weapons list.");
}
return 1;
}
Re: pickup help -
Extremo - 21.02.2015
Use something like
GetTickCount and just make sure that a certain amount of time has elapsed before displaying the pickup again. That's what I can think of right now at least.
Re: pickup help -
Excel™ - 21.02.2015
Make use of player based vars(mainly loops) and make a check in the callback! Also use SetTimerEx!
Re: pickup help -
Vince - 21.02.2015
Use a variable to store the dialogid a player is currently viewing and compare it before executing that block of code.