SA-MP Forums Archive
Bugged menu - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bugged menu (/showthread.php?tid=194430)



Bugged menu - RedFusion - 29.11.2010

EDIT: i found out it was the pickup.
When i stand in the pickup it's scripted like this:
Код:
	if (pickupid == weapons)
	{
		ShowMenuForPlayer(mainwep,playerid);
		TogglePlayerControllable(playerid,false);
		return 1;
	}
Atm it goes to the main menu every second.

I want it like, it detects when you enter it, but not when you stand in it!


Re: Bugged menu - RedFusion - 29.11.2010

Sorry if i bump to early, but i just edited the post and i think it's easier to understand what i mean now.


Re: Bugged menu - Ash. - 29.11.2010

I dont think this is avoidable, but you could destroy the pickup and then recreate when the player exits the menu.

pawn Код:
if(pickupid == weapons)
{
     DestroyPickup(weapons);
     TogglePlayerControllable(playerid, 0);
     ShowMenuForPlayer(playerid, mainwep);
}
- Then recreate the pickup on a timer. Maybe after 1 minute or something?


Re: Bugged menu - NewYorkRP - 29.11.2010

Teleport the player just slightly, so he isn't on the icon ..

common sense eh?