20.11.2011, 16:55
Hmm. Didn't seem to work. Could it be because of includes at the top?
I have one zcmd cmd and it works
I have one zcmd cmd and it works
Код:
COMMAND:v(playerid, params[]) { new vehicleid, color1, color2; if(!sscanf(params, "iii", vehicleid, color1, color2)) { new vin; new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); vin=CreateVehicle(vehicleid, x, y, z, 0.0, color1, color2, -1); PutPlayerInVehicle(playerid, vin, 0); }else{ SendClientMessage(playerid, COLOR_GREY, "ERROR: This command requires: /v [vehicleid][color1][color2]"); } return 1; }