removing objects
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

Quote:
Originally Posted by Jari_Johnson*
View Post
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.
Reply
#5

Quote:
Originally Posted by Dzines4SAMP
View Post
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.
Reply
#6

It has to go under OnPlayerConnect, since RemoveBuildingForPlayer(player......) requires the playerid, this is not passed in OnGameModeInit.
Reply
#7

thanks guys
Reply
#8

Quote:
Originally Posted by Dzines4SAMP
View Post
Doesn't go under OnPlayerConnect, it goes with CreateObject/CreateDynamicObject under OnGameModeInit.
It's RemoveBuildingForPlayer. 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)