SA-MP Forums Archive
Admin Commands - 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: Admin Commands (/showthread.php?tid=301875)



Admin Commands - xMichaelx - 06.12.2011

Hey,

How can i create admin commands using MySQL? And whats the simplest way this is done?

Thanks in advance


Re: Admin Commands - [MG]Dimi - 06.12.2011

OnPlayerConnect get his stats from MySQL and store them into variables. Then under command do
pawn Код:
if(/*groupvariable*/[playerid][Level/*(or what ever you use for admin level)*/] < 1 /*(if his level is less than 1)*/)return SendClientMessage(playerid,-1,"You can't use this command!");



Re: Admin Commands - xMichaelx - 06.12.2011

How would i save the varible and check for it?


Re: Admin Commands - [MG]Dimi - 06.12.2011

https://sampforum.blast.hk/showthread.php?tid=159785


Re: Admin Commands - xMichaelx - 06.12.2011

I honestly don't like his tuts could you explain a bit?