23.10.2018, 22:34
Well as the title says I want a command for example / darauto [player] [auto] for administrators
Well as the title says I want a command for example / darauto [player] [auto] for administrators
|
CMD:darauto(playerid, params[]) { // if(AdminVar[playerid] != Adminlevel) return SendClientMessage(playerid, -1, "ERROR: Your admin level has not authorize on this command!"); new targetid, model; if(sscanf(params, "ui", targetid, model)) { return SendClientMessage(playerid, -1, "USAGE: /givepveh [playerid] [modelid]"); } if(!(400 <= model <= 611)) { return SendClientMessage(playerid, -1, "Invalid vehicle id"); } new Float:posx, Float:posy, Float:posz, Float:a; GetPlayerPos(targetid, posx, posy, posz); GetPlayerFacingAngle(targetid, a); AddStaticVehicleEx(model, posx, posy, posz, a, -1, -1, -1); return 1; }