11.01.2017, 22:23
As Ilearner said, thanks to him,
put the RemoveBuildingForPlayer under OnPlayerConnect.
Example:
If it's DesroyObject function you don't need to destroy something you've added ! :/
put the RemoveBuildingForPlayer under OnPlayerConnect.
Example:
PHP код:
public OnPlayerConnect(playerid)
{
// When the player connects, objects with model 615 will be removed within a
// range of 200.0 from the point 0.0, 0.0, 0.0, which is the center of San Andreas.
RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
return 1;
}