LuxAdmin and a NEW command - 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)
+--- Thread: LuxAdmin and a NEW command (
/showthread.php?tid=414814)
LuxAdmin and a NEW command -
megamind2067 - 10.02.2013
this is the command I added to LUXADMIN:
PHP код:
if (strcmp("/vcmds", cmdtext, true, 10) == 0)
{
if(AccInfo[playerid][pVip] >=1)
{
SendClientMessage(playerid,red,"test");
ShowPlayerDialog(playerid, DIALOG_VCMDS, DIALOG_STYLE_LIST, "{FF0000}V.I.P. Commands", "V.I.P. Level 1 Commands \n V.I.P. Level 2 Commands \n V.I.P. Level 3 Commands", "Select", "Close");
}
else return ErrorMessages(playerid,11);
return 1;
}
the DIALOG does not show up and I don't know why(IT IS ALREADY DEFINED).
can someone tell me why
By the way added the line
PHP код:
SendClientMessage(playerid,red,"test");
to see if the command works and the word "test" does appear.
Re: LuxAdmin and a NEW command -
megamind2067 - 10.02.2013
anyone please!