21.09.2015, 00:27
You guys are missing his point. It's the SA-MP Map Editor (a.k.a. JernejL's Map Construction). It can only export vehicles, removed buildings, and created [dynamic] objects.
The only one of those three that contain a player parameter is the removed buildings. Those are meant to go in the OnPlayerConnect callback (i.e. most of the time), not OnGameModeInit like the other two (i.e. most of the time, again).
So basically:
RemoveBuilding goes in OnPlayerConnect.
Create[Dynamic]Object and CreateVehicle go in OnGameModeInit.
The only one of those three that contain a player parameter is the removed buildings. Those are meant to go in the OnPlayerConnect callback (i.e. most of the time), not OnGameModeInit like the other two (i.e. most of the time, again).
So basically:
RemoveBuilding goes in OnPlayerConnect.
Create[Dynamic]Object and CreateVehicle go in OnGameModeInit.