07.12.2013, 09:21
Hey guys, I've a little problem with a command createcdveh, it means create a dealership vehicle.
I can't make more than 10 vehicles somehow, can anyone help with the command?
This is it:
I can't make more than 10 vehicles somehow, can anyone help with the command?
This is it:
Код:
CMD:createcdveh(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command."); return 1; } new string[128], price, dealershipid, modelid; if(sscanf(params, "ddd", price, dealershipid, modelid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcdveh [price] [dealership] [modelid]"); new Float:X,Float:Y,Float:Z,Float:A; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid, A); new cdvehicleid = CreateCarDealershipVehicle(dealershipid, modelid, X, Y, Z, A, price); if(cdvehicleid == -1) { SendClientMessageEx(playerid, COLOR_GREY, "ERROR: cdVehicles limit reached."); } else { format(string, sizeof(string), " SYSTEM: Car dealership vehicle created (M-ID %d)(ID %d)", modelid, cdvehicleid); SendClientMessageEx(playerid, COLOR_GRAD1, string); } return 1; }