25.05.2012, 01:47
I Downloaded Funky his include Now how I delete an Object wich wich Lines? [[ps i already know how the editor works ]]
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; } |
public OnGameModeInit()
{
RemoveBuilding(615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
Setup
You will need to download the include (and place it in pawno > includes). The download link is available toward the end of this post. Include it (with the name you called it). pawn Code: #include <removebuilding> //Example The default "object removal limit" is 100. You can change this by defining it BEFORE you include the file. Example: pawn Code: #define MAX_REMOVED_OBJECTS 500 #include <removebuilding> Remember, the higher this number - the bigger the array, therefore the higher the memory usage. You can then proceed to using "RemoveBuilding" like you would use "RemoveBuildingForPlayer". You will need to change your RemoveBuildingForPlayer lines to RemoveBuilding for this include to be able to handle them correctly. |