removing objects - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: removing objects (
/showthread.php?tid=424076)
removing objects -
TomatoRage - 20.03.2013
i just want to ask , how to remove objects that are originally put by samp ( gta sa)?
if you dont understand , i mean the normal objects which come with game , those that we dont map them , how to remove them ?
Thanks
Re: removing objects -
Beljulji - 20.03.2013
here you go:
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
and use this map editor to remove buildings:
https://sampforum.blast.hk/showthread.php?tid=282801
Re: removing objects -
Jstylezzz - 20.03.2013
Use JernejL's map editor, you can select an object, and press 'delete', which will generate the RemoveBuildingForPlayer code for you. The RemoveBuildingForPlayer code goes (preferably) under OnPlayerConnect in your script.
Map editor thread
Re: removing objects -
Dzines4SAMP - 20.03.2013
Quote:
Originally Posted by Jari_Johnson*
Use JernejL's map editor, you can select an object, and press 'delete', which will generate the RemoveBuildingForPlayer code for you. The RemoveBuildingForPlayer code goes (preferably) under OnPlayerConnect in your script.
Map editor thread
|
Doesn't go under OnPlayerConnect, it goes with CreateObject/CreateDynamicObject under OnGameModeInit.
Re: removing objects -
Beljulji - 20.03.2013
Quote:
Originally Posted by Dzines4SAMP
Doesn't go under OnPlayerConnect, it goes with CreateObject/CreateDynamicObject under OnGameModeInit.
|
no it goes under onplayerconnect, i had stunt server and i put it under onplayerconnect dude.
Re: removing objects -
Jstylezzz - 20.03.2013
It has to go under OnPlayerConnect, since RemoveBuildingForPlayer(player......) requires the playerid, this is not passed in OnGameModeInit.
Re: removing objects -
TomatoRage - 20.03.2013
thanks guys
Re: removing objects -
DiGiTaL_AnGeL - 20.03.2013
Quote:
Originally Posted by Dzines4SAMP
Doesn't go under OnPlayerConnect, it goes with CreateObject/CreateDynamicObject under OnGameModeInit.
|
It's RemoveBuildingFor
Player. OnGameModeInit is not called for a certain player, so it will give this error : "Undefined symbol : playerid". It must be placed under OnPlayerConnect because the building is removed for the player when he connects.