HELP me
#1

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;
}

Reply


Messages In This Thread
HELP me - by Isteven - 21.05.2018, 15:02
Re: HELP me - by Osamakurdi - 21.05.2018, 15:44
Re: HELP me - by poppingrose - 21.05.2018, 16:19
Re: HELP me - by Isteven - 21.05.2018, 16:50
Re: HELP me - by Osamakurdi - 21.05.2018, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)