RemoveBuildingForPlayer

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:03, 25 April 2014
MP2 (Talk | contribs)

← Previous diff
Revision as of 22:21, 20 September 2014
Vince (Talk | contribs)

Next diff →
Line 14: Line 14:
{{NoReturn}} {{NoReturn}}
- +{{Note2|There appears to be a limit of around 1000 lines/objects. There is no workaround.}}
-JernejL's Map Editor: http://forum.sa-mp.com/showthread.php?t=282801+
{{Example}} {{Example}}
Line 27: Line 26:
} }
</pawn> </pawn>
 +
 +===External Links===
 +* [http://forum.sa-mp.com/showthread.php?t=282801 JernejL's Map Editor]
 +
{{RelatedFunctions}} {{RelatedFunctions}}

Revision as of 22:21, 20 September 2014



RemoveBuildingForPlayer was added in SA-MP 0.3d This function was added in SA-MP 0.3d and will not work in earlier versions!


Description:

Removes a standard San Andreas model for a single player within a specified range.


Parameters:
(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius)
playeridThe ID of the player to remove the objects for.
modelidThe model to remove.
Float:fXThe X coordinate around which the objects will be removed.
Float:fYThe Y coordinate around which the objects will be removed.
Float:fZThe Z coordinate around which the objects will be removed.
Float:fRadiusThe radius around the specified point to remove objects with the specified model.


Return Values:

This function does not return any specific values.


Image:32px-Circle-style-warning.png

Important
Note

There appears to be a limit of around 1000 lines/objects. There is no workaround.


Example Usage:

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;
}

External Links


Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools