OnGameModeInit
#1

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...
Reply
#2

There's no need to check cause it loads anyway.
Reply
#3

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.
Reply
#4

The second that samp-server.exe opens OnGameModeInit() executes.
Reply
#5

You can't check it loads always
Reply
#6

That'd use OnPlayerConnect
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)