28.08.2009, 15:54
Quote:
Originally Posted by Paladin
https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu
That should give you all the information you need. If you need IM assistance, feel free to look for me in the SA-MP Scripting IRC Channel. IRC CHANNEL But first read the wiki! |
Quote:
Originally Posted by Jbosh123
I have read https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu And I still have some trouble!
|
Код:
new InLSPD[MAX_PLAYERS];
Next In OnPlayerPickup, this is what will happen when the player picks up the "lspd" info icon:
Код:
if(pickupid == lspd) { InLSPD[playerid] == 1; return 1; } }
Код:
dcmd_lspd(playerid,params[]) { #pragma unused params if(InLSPD[playerid] == 1) { ShowMenuForPlayer("NAME OF YOUR MENU HERE"); } else return SendClientMessage(playerid,COLOR,"This command can only be used in the LSPD icon!"); }
Код:
dcmd(lspd,4,cmdtext);
You would also need to add this to your OnPlayerExitedMenu, OnPlayerConnect and OnPlayerDisconnect callbacks:
Код:
InLSPD[playerid] == 0;