03.12.2016, 11:26
Hello Guys :
- How Can I Make A CMD to delete all car uninhabited vehicles in, on the server
- This Is My Spawn Car Command
- How Can I Make A CMD to delete all car uninhabited vehicles in, on the server
- This Is My Spawn Car Command
Код:
CMD:layxe(playerid, params[]) { new Float:x, Float:y, Float:z, Float:Angle, vehicleid, name[20 + EOS]; if(!sscanf(params,"i", vehicleid)) { if(611 < vehicleid || vehicleid < 400) return SendClientMessage(playerid, COLOR_RED, "ID Xe [400-611]"); } else if(!sscanf(params, "s[20]", name)) { if((vehicleid = GetVehicleIDFromName(name)) == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_RED, "Ten Khong Hop Le"); } else return SendClientMessage(playerid, COLOR_RED, "/layxe [id xe hoac ten xe]"); if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid); DestroyVehicle(vehicleid); GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, Angle); vehicleid = CreateVehicle(vehicleid, x, y, z, Angle, -1, -1, -1); PutPlayerInVehicle(playerid, vehicleid, 0); return 1; }