menu style - 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: menu style (
/showthread.php?tid=454428)
menu style -
Stgnature - 28.07.2013
MY choseing Menu style is this
Quote:
SkillMenu = CreateMenu("~b~Skill ~w~Selection",1,15,150,200);
SetMenuColumnHeader(SkillMenu , 0, "~w~Please select your skill");
AddMenuItem(SkillMenu,0,"Rapist");
AddMenuItem(SkillMenu,0,"Drug Dealer");
AddMenuItem(SkillMenu,0,"Weapon Dealer");
AddMenuItem(SkillMenu,0,"Hitman");
AddMenuItem(SkillMenu,0,"Car Jacker");
AddMenuItem(SkillMenu,0,"Kidnapper");
AddMenuItem(SkillMenu,0,"Thief");
AddMenuItem(SkillMenu,0,"Terrorist");
|
i want to change to like that
a box come and press 1 to chose Rapist
Press 2 to chose Drug Dealer
press 3 to chose Weapon Dealer
press 4 to chose Hitman
press 5 to chose Car Jacker
press 6 to chose Kidnapper
press 7 to chose Thief
press 8 to chose Terrorist
i wnat to code how to make that
Re: menu style -
[XST]O_x - 28.07.2013
SA-MP Cannot detect keys that are not user-mapped.
You can't detect 3...8 unless you've mapped it as your running/jumping/sprinting/etc keys, and so did all of your server's players.
There might be a plugin that detects all keyboard keys, but it only detects the localhost keys. (The one who opened up SAMP-Server.exe applictation) So it won't work for your other server players.
For your question: For that style of box, don't use a menu, use a regular textdraw and set the string to: "Press 2 to chose Drug Dealer\nPress KEY_JUMP to chose Weapon Dealer..." and use OnPlayerKeyStateChange to detect the selection.
Re: menu style -
Stgnature - 28.07.2013
well i have no idea can u Pm me the Codes