05.04.2017, 07:10
Totally! Put CreateObject and / or CreateDynamicObject inside OnGameModeInit
And RemoveBuildingForPlayer on OnPlayerConnect since OnGameModeInit doesn't have any ( playerid ) parameters.
PHP код:
public OnGameModeInit()
{
//CreateDynamicObject(blah, blah, blah....);
//CreateObject(blah, blah, blah...);
return 1;
}
PHP код:
public OnPlayerConnect(playerid)
{
//RemoveBuildingForPlayer(playerid, blah, blah, blah....);
return 1;
}