Admin Commands
#1

Hey,

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

Thanks in advance
Reply
#2

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!");
Reply
#3

How would i save the varible and check for it?
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)