menu style
#1

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

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

well i have no idea can u Pm me the Codes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)