Admin CMD help
#1

Howdy, fellows. Well, I've tried everything and I know that this is basic stuff but how to allow an admin to use a CMD without being on admin-duty? I've tried everything but with no sucess. For example in this command:

Код:
CMD:getcar(playerid, params[])
{
   	if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be on Admin Duty to use this Command!");
	if (PlayerInfo[playerid][pAdmin] >= 3)
	{
		new carid;
		if(sscanf(params, "d", carid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /getcar [carid]");
		new Float:plocx,Float:plocy,Float:plocz;

		GetPlayerPos(playerid, plocx, plocy, plocz);
		SetVehiclePos(carid,plocx,plocy+4, plocz);
		SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
		LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}

What do I have to remove? How many brackets? I hope you can help me with this simple question, cheers.
Reply


Messages In This Thread
Admin CMD help - by DuarteCambra - 22.03.2013, 12:26
Re: Admin CMD help - by InfiniTy. - 22.03.2013, 12:27
Re: Admin CMD help - by kristo - 22.03.2013, 12:27
Respuesta: Re: Admin CMD help - by DuarteCambra - 22.03.2013, 12:30
Re: Admin CMD help - by VitalRP - 22.03.2013, 12:34
Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 12:40
Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 12:52
Re: Respuesta: Admin CMD help - by InfiniTy. - 22.03.2013, 12:54
Respuesta: Re: Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)