RemoveBuildingForPlayer

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 18:49, 27 December 2012
Ikkentim (Talk | contribs)
(removed rather an advertisement for an include than a 'note')
← Previous diff
Revision as of 18:31, 2 January 2013
Drebin (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
{{Title}} {{Title}}
- 
-{{Description|Removes a standard San Andreas model for a single player within a specified range.}} 
{{AddedIn0.3d|function}} {{AddedIn0.3d|function}}
 +
 +{{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}} {{Parameters|playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius}}

Revision as of 18:31, 2 January 2013




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. Objects within this radius from the coordinates above will be removed.


Return Values:

This function does not return any specific values.


JernejL's Map Editor: http://forum.sa-mp.com/showthread.php?t=282801


public OnPlayerConnect(playerid)
{
    // When the player connects model "615" which is veg_tree3 will be deleted 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;
}

Related Functions

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

Personal tools