PDA

View Full Version : Spawn System?


Ghost Dog 13
03-29-2009, 04:08 AM
Hey Guys...

Can somebody experienced in LUA make a command "/spawn ID" ??? not name... just ID of car... :P

[LCK]G0LdzEr0
03-29-2009, 09:36 AM
Script by Relax:

function Vehc(PlayerID,vehid)
local X, Y, Z = getPlayerPos(PlayerID)
carid = strval(vehid)
if carid == nil then outputChatBox(PlayerID,">> Syntax: /veh <vehid>",255,0,0,255) return end
if carid > 129 and carid < 235 then
createVehicle(carid,X,Y,Z,180.0,-1,-1)
setPlayerPos(PlayerID,X, Y, Z+1);
else outputChatBox(PlayerID,"/veh 130 - 235 only!.",255,0,0,255) return end
end
addCommand("veh","Vehc")

Ghost Dog 13
03-29-2009, 09:37 AM
Thanks Mate :)