A little problem with car respawn -
jerry1996 - 18.07.2011
Hello,
I have a little problem with my car respawning,
Everytime if someone exit his/her vehicle, It will get respawned.
Can anyone help me with it? can someone tells me how to make a /park command,
Or that the car's wont respawn.
Thank you.
Re: A little problem with car respawn -
Raimis_R - 18.07.2011
Change vehicles respawn delay
Re: A little problem with car respawn -
jerry1996 - 18.07.2011
I've searched more then a hour for that, But I can't find it. -.-
Re: A little problem with car respawn -
jerry1996 - 18.07.2011
Anyone can help?
Re: A little problem with car respawn -
park4bmx - 18.07.2011
ok
EXAMPLE
i create this vehicle
pawn Код:
CreateVehicle(520, 804.1500, 4560.4560, 12.3400, 120.88, 0, 1, 100);
//you see at the end the number [100] that is the Delay timer before the vehicle respawns
Is like This
Код:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
BTW the time is in
seconds hope i helped
Re: A little problem with car respawn -
jerry1996 - 18.07.2011
( AddStaticVehicle(596,641.3103,-609.7316,16.0593,357.6638,0,1,10000 )
If I do that, I will get this error;
warning 202: number of arguments does not match definition
Re: A little problem with car respawn -
park4bmx - 18.07.2011
Quote:
Originally Posted by jerry1996
( AddStaticVehicle(596,641.3103,-609.7316,16.0593,357.6638,0,1,10000 )
If I do that, I will get this error;
warning 202: number of arguments does not match definition
|
yeah try this
pawn Код:
AddStaticVehicle(596,641.3103,-609.7316,16.0593,357.6638,0,10000);
you get that because
AddStaticVehicle is not the same as
CreateVehicle
AddStaticVehicle doesnt have Respawn_Delay
is like this !!!
Код:
(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
if you want with
Respawn_Delay try this then use
AddStaticVehicleEx
Код:
AddStaticVehicleEx (596,641.3103,-609.7316,16.0593,357.6638,1,0,10000 );
Re: A little problem with car respawn -
Adil - 18.07.2011
You're using
CreateVehicle,
AddStaticVehicle or
AddStaticVehicleEx?
Show it.
Re: A little problem with car respawn -
jerry1996 - 18.07.2011
Thanks man, I change that ''AddStaticVehicle'' to ''AddStaticVehicleEx'' and putted the time on it.
PS, is it possible to turn the respawn OFF?
Re: A little problem with car respawn -
Adil - 18.07.2011
Change the last param to 0.
Re: A little problem with car respawn -
jerry1996 - 18.07.2011
Thanks man <3