pickup help
#1

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;
}
Reply
#2

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

Make use of player based vars(mainly loops) and make a check in the callback! Also use SetTimerEx!
Reply
#4

Use a variable to store the dialogid a player is currently viewing and compare it before executing that block of code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)