setPedControlState
Actually his English seems better than yours so you can't really blame him for it.
Even if you had a better English it's still bad to blame anyone because of their English skills.
PS: it's translator. Traductor en español.
function destruirV ( )
for _, v in ipairs (getElementsByType("vehicle")) do
if not getVehicleOccupant (v) then
destroyElement (v)
end
end
end
local tiempo = 60 -- segundos.
setTimer (destruirV, tiempo * 1000, 0)
Usa onPlayerLogout para lo del logOut.
You could also use:
unpack (table)
Instead of:
table[1], table[2] --...
local positions = {
-- {x,y,z[,rot]},
}
function randomSpawn(player)
local postab = positions[math.random(1,#positions)]
local x,y,z,rot = unpack (postab, 1, 3)
local rot = postab[4] or 0
spawnPlayer(player,x,y,z,rot)
end
You're welcome !
Probably it's a problem from your server (its scripts), because else it's so weird that it works in one server and doesn't work in the other.
Make sure you set this as server side in the meta.xml.
There you have.
For your further scripts keep in mind that "local" only applies to your block code, so you should destroy that variable inside it. Else, just don't use "local".
local dodo1 = createVehicle ( 593, -3413.4, -65.5, 18, 0, 0, -90 )
function respawn_dodo()
if source == dodo1 then
setTimer(respawnVehicle, 5000, 1, source)
end
end
addEventHandler("onVehicleExplode", root, respawn_dodo)
How can you be that racist and literally insult all of the Spaniards on these boards like that?
If you hate them because Spanish is too hard for you go and learn some Spanish instead of being a racist fucktard in the background.
I am Spanish btw.