06.02.2014, 10:54
RemoveObjs(playerid)
{
RemoveBuildingForPlayer(...);
}
OnPlayerLogin(playerid) // or any other callback which is called only once.
{
RemoveObjs(playerid);
}
You HAVE to use it after onplayerconnect as its not a global function, its for player, as server can't remove object from my game, before I have connected to your server.
{
RemoveBuildingForPlayer(...);
}
OnPlayerLogin(playerid) // or any other callback which is called only once.
{
RemoveObjs(playerid);
}
You HAVE to use it after onplayerconnect as its not a global function, its for player, as server can't remove object from my game, before I have connected to your server.