hi.i have a problem with these commands.when i using their i crashed from server and server say you are banned.please help me.
Код:
CMD:respawncars(playerid,params[]){
#pragma unused params
if(PlayerData[playerid][AdminLevel]<3&&!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command.");
SendClientMessageToAdminsEx(COLOR_DEEPSKYBLUE,"Admin %s(%d) (lvl:%d) used RESPAWNCARS.",PlayerName(playerid),playerid,PlayerData[playerid][AdminLevel]);
SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has respawned unused vehicles.");
for(new i=0;i<MAX_VEHICLES;i++){
if(!IsValidVehicle(i))break;
if(IsVehicleEmpty(i))SetVehicleToRespawn(i);}
return 1;}
CMD:restartserver(playerid,params[]){
#pragma unused params
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_RED,"You are not authorized to use this command.");
SendClientMessageToAdminsEx(COLOR_DEEPSKYBLUE,"Admin %s(%d) (lvl:%d) used RESTARTSERVER.",PlayerName(playerid),playerid,PlayerData[playerid][AdminLevel]);
SendClientMessageToAll(COLOR_BLUE,"Admin %s(%d) has restarted the server.");
SendRconCommand("gmx");
return 1;}