22.12.2015, 12:40
If u r using ladmin
then here you go
Change only
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 1) {
to your own data
then here you go
PHP код:
CMD:searchban(playerid,params[]) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 1) {
new string[100],nickname[50];
if(sscanf(params, "s[50]s[48]", nickname)) return SCM(playerid, dred, "[LBAN]: /Searchban (New String)");
CMDMessageToAdmins(playerid,"SEARCHBAN");
format(string,sizeof(string),"/ladmin/bans/%s.ini", nickname);
return LSEARCHBAN(playerid,string);
} else return SendClientMessage(playerid,dred,"» Error « {BABABA} You are not a high enough level to use this command");
} else return SendClientMessage(playerid,red,"» Error « {BABABA} You must be logged in to use this commands");
}
CMD:sban(playerid,params[]) {
return cmd_searchban(playerid, params);
}
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 1) {
to your own data