SA-MP Forums Archive
[HELP]Car Spawner[FINISHED] - 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]Car Spawner[FINISHED] (/showthread.php?tid=153714)



[HELP]Car Spawner[FINISHED] - [MY]Bryan_3295 - 10.06.2010

This topic has been removed.. by [MY]Bryan_3295.
To prevent copied by others.

Thanks to everyone who helped in this topic

THANKS!


Re: [HELP]Car Spawner - DJDhan - 10.06.2010

Well, Firstly: Are you Lux Admin Level 1 and Vip level 3 both?
It should maybe be:
Код:
if (IsPlayerLuxAdminLevel(playerid,1) || IsPlayerVipLevel(playerid, 3))
You are going to release it with that ^ ? Not everybody uses Lux Admin.

Secondly:
Код:
 if(IsPlayerInVehicle(playerid, vacar[0]) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
This code checks if the player in a vehicle already or not. So it should be
Код:
if(!IsPlayerInAnyVehicle(playerid))




Re: [HELP]Car Spawner - [MY]Bryan_3295 - 10.06.2010

Erm i am Lux admin level 1 and Vip 3 for tested server
when i /vacar it doesn't spawn one..

and i don't know how to delete my old car after 30sec

If i use
if(!IsPlayerInAnyVehicle(playerid))
it would be weird

I set it only for vacar...

So i need
if(IsPlayerInVehicle(playerid, vacar[0]) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)

And i got carspawner
but it doesn't spawn me a car