Shouldn't this work? - 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: Shouldn't this work? (
/showthread.php?tid=212506)
Shouldn't this work? -
iLcke - 17.01.2011
After a big break from scripting, I had a great start on this new script, untill this happens.
pawn Код:
public OnVehicleSpawn(vehicleid)
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "OutStanding");
SetVehicleToRespawn(i);
}
return 1;
}
The vehicles plate doesn't get set, but shouldn't this work?
Re: Shouldn't this work? -
Hiitch - 17.01.2011
This function is supposedly called when someone spawns a vehicle with a command in game, or so I believe.
If you want the vehicles to have the plate when the gamemode starts, try using it under OnGameModeInit() { }
Re: Shouldn't this work? -
iLcke - 17.01.2011
I tried OnGameModeInit, it didn't work. However my friend who just logged on MSN told me to use OnVehicleStreamIn, and it worked, but thanks for your help Hiitch.