How to destroy objects
#2

If you want to remove a gta sa game object (not server sided object), you have to put RemoveBuildingForPlayer
under OnPlayerConnect, everytime a player connected to your server, the object will be removed for him.

Ex :

PHP Code:
public OnPlayerConnect(playerid)
{
     
RemoveBuildingForPlayer(playeridmodelidFloat:fXFloat:fYFloat:fZFloat:fRadius)
     return 
1;

You don't have to use loop, if you use it that way

EDIT : Are you making a command to destroy a game object?
Reply


Messages In This Thread
How to destroy objects - by akib - 14.06.2017, 16:26
Re: How to destroy objects - by AfiqIqbal - 15.06.2017, 13:27
Re: How to destroy objects - by akib - 15.06.2017, 13:59
Re: How to destroy objects - by JasonRiggs - 15.06.2017, 14:20
Re: How to destroy objects - by DRIFT_HUNTER - 15.06.2017, 14:44
Re: How to destroy objects - by JasonRiggs - 15.06.2017, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)