22.03.2013, 12:26
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:
What do I have to remove? How many brackets? I hope you can help me with this simple question, cheers.
Код:
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.