SA-MP Forums Archive
disabling menu rows, AND ENABLING? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: disabling menu rows, AND ENABLING? (/showthread.php?tid=81244)



disabling menu rows, AND ENABLING? - Gamer007 - 09.06.2009

I know the command to disablemenurow's but is there anyway to enable them back? i saw in one server if the player is in deathmatch it disables Join menu for him, and enables Leave. but if he isn't in DM it enables join and disables leave, so how?!


Re: disabling menu rows, AND ENABLING? - dice7 - 09.06.2009

Maybe the server just has something like

if(IsPlayerInDM[playerid]==1)
{
ShowMenuForPlayer(playerid, dmmenu);
}
else
{
ShowMenuForPlayer(playerid, nondmmenu);
}


Re: disabling menu rows, AND ENABLING? - Gamer007 - 09.06.2009

no, don't be ridiculous ...


Re: disabling menu rows, AND ENABLING? - Gamer007 - 09.06.2009

anyone? it is possible, please..


Re: disabling menu rows, AND ENABLING? - Gamer007 - 10.06.2009

OH COME ON!


Re: disabling menu rows, AND ENABLING? - NeRoSiS - 10.06.2009

YEAH!!!!

Your allowed to bump but being rude isn't the right way to go about it.

After doing vigorous research I found nothing, experiment with existing functions such as ShowMenuForPlayer, see if you can find anyway of re-showing the row.


Re: disabling menu rows, AND ENABLING? - Gamer007 - 10.06.2009

very good answer........ you think i didn't searched? i searched before i posted this topic and i didn't found anything.


Re: disabling menu rows, AND ENABLING? - CracK - 10.06.2009

Quote:
Originally Posted by dice7
Maybe the server just has something like

if(IsPlayerInDM[playerid]==1)
{
ShowMenuForPlayer(playerid, dmmenu);
}
else
{
ShowMenuForPlayer(playerid, nondmmenu);
}
He is right. Do what he said - create 2 menus, in one disable "Join" row, in the other "Leave".