if(text[0] == '1')
{
if(ShowMenuBurgerText[playerid] == 1)
{
//My Code
}
}
return 0;
}
I don't know if I understand, hence I will not make an example for you but I can refer you to some wiki articles of functions that can be used to do what I think you want to do.
https://sampwiki.blast.hk/wiki/SetPVarInt https://sampwiki.blast.hk/wiki/GetPVarInt https://sampwiki.blast.hk/wiki/DeletePVar https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange |
SkyDiveDialog[playerid] = 1;
SkyDiveDialog[playerid] = 0;
new SkyDiveDialog[MAX_PLAYERS];
public OnPlayerText(playerid,text[])
{
if(SkyDiveDialog[playerid] == 1)
{
if(strfind(text, "1", true) != -1)
{
//do something here
SkyDiveDialog[playerid] = 0;
}
if(strfind(text, "2", true) != -1)
{
//do something here
SkyDiveDialog[playerid] = 0;
}
if(strfind(text, "3", true) != -1)
{
//do something here
SkyDiveDialog[playerid] = 0;
}
}else return 0;
return 0;
}