RemoveBuildingForPlayer

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:18, 12 September 2011
Megadreams (Talk | contribs)

← Previous diff
Revision as of 19:19, 12 September 2011
Megadreams (Talk | contribs)

Next diff →
Line 13: Line 13:
{{Param|Float:fZ|The Z coordinate where you want to delete a model.}} {{Param|Float:fZ|The Z coordinate where you want to delete a model.}}
{{Param|Float:fRadius|The range within the models needs to be deleted.}} {{Param|Float:fRadius|The range within the models needs to be deleted.}}
-{{ 
{{Returns|This function doesn't return a specific value}} {{Returns|This function doesn't return a specific value}}

Revision as of 19:19, 12 September 2011




Description:

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


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


Parameters:
(playerid)
playeridID of the player of whom you want to get the animation index of.
modelidThe model you want to use.
Float:fXThe X coordinate where you want to delete a model.
Float:fYThe Y coordinate where you want to delete a model.
Float:fZThe Z coordinate where you want to delete a model.
Float:fRadiusThe range within the models needs to be deleted.

Return Values:

This function doesn't return a specific value


Example

public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
    return 1;
}
Personal tools