08.07.2011, 00:48
How Do I Create Admin Script Without DINI? Does Anyone Have a Tutorial For That, I want it to be an up to date script
if(strcmp(cmd,"/lol",true) == 0)
{
if(PlayerInfo[playerid][pAdminLevel] <= 0)
{
SendClientMessage(playerid,color,"You are not an Admin!");
return 1;
}
else {
// admin command
return 1;
}
}
|
http://forum.sa-mp.com/showthread.ph...=register+dini
Then you can make Admin commands like so: Код:
if(strcmp(cmd,"/lol",true) == 0)
{
if(PlayerInfo[playerid][pAdminLevel] <= 0)
{
SendClientMessage(playerid,color,"You are not an Admin!");
return 1;
}
else {
// admin command
return 1;
}
}
|