25.07.2013, 03:37
Код:
public OnVehicleSpawn(vehicleid) { SetVehicleNumberPlate(vehicleid,"0x00FF00FFBrutal Haulers"); return 1; }
Код:
CMD:veh(playerid, params[]) { new vehid,vehicle; if(PlayerInfo[playerid][pLevel] < 1) return error if(sscanf(params, "i", vehid)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /veh <carid>"); else if (vehid < 400 || vehid > 611) SendClientMessage(playerid, COLOR_GREY, "[ERROR] Invalid car id! [ Car ID's range from 400 - 611 ]"); else { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); vehicle = CreateVehicle(vehid, x + 3, y, z, 0, 0,0, -1); PutPlayerInVehicle(playerid,vehicle,0); SendClientMessage(playerid, COLOR_GREEN, "Car spawned!"); } return 1; }