[HELP] About Vehicles Licenses Plates! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] About Vehicles Licenses Plates! (
/showthread.php?tid=81073)
[HELP] About Vehicles Licenses Plates! -
DjSterios - 08.06.2009
Hello, i need some help. Put on GameModeInit to set the license plate of some cars. Well it works But.. If they respawn, The license plate its normal. So.. its possible to make a code when this car respawns to set the license plate?
Re: [HELP] About Vehicles Licenses Plates! -
Littl3j0hNy - 08.06.2009
Hi, please use the Searchbox. In this Forum you can find
a lot of these Scripts.
- LJ
Re: [HELP] About Vehicles Licenses Plates! -
MenaceX^ - 08.06.2009
You probably don't save the plate.
Re: [HELP] About Vehicles Licenses Plates! -
Gappy - 08.06.2009
You could use a timer to reset the number plate to what ever you want it to be every X seconds
Re: [HELP] About Vehicles Licenses Plates! -
DjSterios - 08.06.2009
I Searched a bit, but i cant find anything.
Re: [HELP] About Vehicles Licenses Plates! -
Marcel - 08.06.2009
Use this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetVehicleNumberPlate(vehicleid, "text");
SetVehicleToRespawn(vehicleid);
return 1;
}
Re: [HELP] About Vehicles Licenses Plates! -
DjSterios - 08.06.2009
Quote:
Originally Posted by Marcel
Use this:
pawn Код:
public OnVehicleSpawn(vehicleid) { SetVehicleNumberPlate(vehicleid, "text"); SetVehicleToRespawn(vehicleid); return 1; }
|
Its not working.
Re: [HELP] About Vehicles Licenses Plates! -
Think - 08.06.2009
Quote:
Originally Posted by Marcel
Use this:
pawn Код:
public OnVehicleSpawn(vehicleid) { SetVehicleNumberPlate(vehicleid, "text"); SetVehicleToRespawn(vehicleid); return 1; }
|
fail, thatll call onvehiclespawn again, and itll go in a loop for all cars if you has like 500 cars in your server, itll crash the server completely.
for this,
delete the code above.
and show the code where your cars are being spawned. (that r needing to be license plated)
Re: [HELP] About Vehicles Licenses Plates! -
Marcel - 08.06.2009
When you set a vehicle plate you have to respawn the car to have effect, that's what the wiki says.
Re: [HELP] About Vehicles Licenses Plates! -
Drift_King786 - 08.06.2009
Quote:
Originally Posted by Marcel
When you set a vehicle plate you have to respawn the car to have effect, that's what the wiki says.
|
maybe it shud occcur on a different event, such as a command text? on game mode ?
OnPlayerCommand
and
OnGameModeInit
are the best places to put it in