Posts: 157
Threads: 55
Joined: Jul 2013
Reputation:
0
Hey guys can someone tell me how do I make a script that reserves a cmd to a specific person (the owner for example) ? Because I have this /setlevel cmd that I want only me to be able to use and I dont want the other rcon admins to be able to use it. Is there a way to make a script which allows only my username or my ip to use that command ?
Posts: 1,266
Threads: 6
Joined: Oct 2014
dude o.o
PHP код:
#include a_samp
#include zcmd
CMD:jetpack(playerid,params[]) {
new Name[32];
GetPlayerName(playerid, Name, sizeof(Name));
if(!strcmp(Name, "DOG", true)) {
SendClientMessage(playerid,-1,"|- Jetpack Spawned! -|");
return SetPlayerSpecialAction(playerid, 2);
} else return SendClientMessage(playerid,-1,"ERROR: You need to be Dog to use this command XD");
}