21.05.2018, 15:02
GUyz how can i turn this command from RCon admin to SCRIPT admin? script admin means /setadmin 1/2/3?
Quote:
if(strcmp(cmdtext, "/g delete", true) == 0) { if(IsPlayerAdmin(playerid)) { for(new g = 0; g <= MAX_GARAGES; g++) { new Garage[64]; format(Garage, sizeof(Garage), "/Garages/%d.dini.save", g); if(dini_Exists(Garage)) { LoadGarages(g); if(IsPlayerInRangeOfPoint(playerid, 3.0, GarageInfo[g][ExtX], GarageInfo[g][ExtY], GarageInfo[g][ExtZ])) { format(Garage, sizeof(Garage), "/Garages/%d.dini.save", g); if(dini_Exists(Garage)) { Delete3DTextLabel(GarageInfo[g][Label]); DestroyPickup(GarageInfo[g][Pickup]); DestroyPickup(GarageInfo[g][Pickup]); DestroyPickup(GarageInfo[g][Pickup]); dini_Remove(Garage); SendClientMessage(playerid,COLOR_GREEN,"Garage was successfully deleted!"); } } } } } else SendClientMessage(playerid, COLOR_ERROR, "You are not a RCON Administrator."); return 1; } |