09.12.2018, 13:48
try this:
Код:
new Vehicle[MAX_PLAYERS]; COMMAND:kerr(playerid, params[]){ new car; new string[128]; new first; new second; new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, Float:X, Float:Y, Float:Z); if(sscanf(params, "iii", car, first, second)) return SendClientMessage(playerid, 0xF0F8FFAA, "Perdorimi: /kerr [VEHICLE ID][color1][color2]"); if(car < 400 || car > 611) return SendClientMessage(playerid, 0xF0F8FFAA, "ID i kerrit duhet te jete me e madhe se 399, dhe me e vogel se 612"); if(Vehicle[playerid] != 0){ DestroyVehicle(Vehicle[playerid]); } Vehicle[playerid] = CreateVehicle(car, X, Y, Z + 3.0, first, second, 1, -1); format(string, sizeof(string), "Ti ke krijuar nje kerr, me id", car); SendClientMessage(playerid, 0xF0F8FFAA, string); return 1; }