if(strcmp(cmd, "/getvehicle", true) == 0) { if(InVehicle == 1) { SendClientMessage(playerid, COLOR_RED, "You can't be in/on any vehicle!"); } else if(IsAdmin == 1) { new carcolor; new carcolor2; new VehicleID; new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /getvehicle [vehicleid] [color1] [color2]"); return 1; } VehicleID = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /getvehicle [vehicleid] [color1] [color2]"); return 1; } carcolor = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /getvehicle [vehicleid] [color1] [color2]"); return 1; } carcolor2 = strval(tmp); GetPlayerPos(playerid, x, y, z); CreateVehicle(VehicleID, x+2, y+2, z+2, 0, carcolor, carcolor2, 100); } else { SendClientMessage(playerid, COLOR_RED, "You are not an admin!"); } return 1; }