OnGameModeInit - 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)
+--- Thread: OnGameModeInit (
/showthread.php?tid=499129)
OnGameModeInit -
Lidor124 - 06.03.2014
How to check if public OnGameModeInit was loaded, i mean if i have already launched the server, how to detect it?
or just other publics...
Re: OnGameModeInit -
Luis- - 06.03.2014
There's no need to check cause it loads anyway.
Re: OnGameModeInit -
Lidor124 - 06.03.2014
Quote:
Originally Posted by Luis-
There's no need to check cause it loads anyway.
|
I want to make this:
if player owns cars so on his first conenct to the server his vehicles will be spawned on specific locations but when he leaves the vehicles will stay. and whenever he reconnects the cars will be there.
when relaunch the server so all cars will respawn to their original parks.
Re: OnGameModeInit -
BKarner - 06.03.2014
The second that samp-server.exe opens OnGameModeInit() executes.
Re : OnGameModeInit -
Clad - 06.03.2014
You can't check it loads always
Re: OnGameModeInit -
Luis- - 06.03.2014
That'd use OnPlayerConnect
Re: OnGameModeInit -
BKarner - 06.03.2014
Quote:
Originally Posted by Lidor124
I want to make this:
if player owns cars so on his first conenct to the server his vehicles will be spawned on specific locations but when he leaves the vehicles will stay. and whenever he reconnects the cars will be there.
when relaunch the server so all cars will respawn to their original parks.
|
You'd need to create the vehicle when the player connects like Luis- said. Just make sure the vehicle doesn't delete when they leave.