04.06.2011, 14:50
hmm you know what, using a dialog is much easier than a menu, here's a link, https://sampwiki.blast.hk/wiki/ShowPlayerDialog
after you create the dialog use this ,
after you create the dialog use this ,
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) //use the ID of the dialog you created,
{
if(response)
{
if(listitem == 0) && IsPlayerInPlane(playerid) // so only people in planes can use this
{
SetPlayerMapIcon(playerid,0,x,y,z,type,color);
//you also need to put the timer here
}
}
}
}