|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Gurgaon,India
Posts: 743
Reputation: 137
|
What and Why? You all may know about RemoveBuilding include. I and my friend were scripting and he wanted to remove and restore building for a specific playerid. So, to get over it, I created this little include. Contents :
Introduction Using this include you can do :
Stocks It have the following stocks/functions. pawn Code:
Example/Usage We can use #define MAX_PLAYER_BUILDING to change the number of max buildings you want to remove Default is 500 Lets us declare variables to store slot of the building pawn Code:
Now a command to remove buidling's. pawn Code:
slot1 building is removed for playerid whereas slot2 building is removed for everyone. pawn Code:
File Needed You will need Y_Hook for include to work properly. If you dont have it, you will have to use pawn Code:
Download Pastebin link (Click Me) pawn Code:
BUGS : Please report bugs and suggestions. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Posts: 2,372
Reputation: 570
|
Why even bother then?
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Location: Home
Posts: 2,390
Reputation: 210
|
What did you change? It looks quite the same.
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Gurgaon,India
Posts: 743
Reputation: 137
|
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
|
|
|
|
#6 |
|
Banned
![]() Join Date: Jan 2010
Location: Runkeeper
Posts: 1,634
Reputation: 236
|
So, what happens if you delete all objects of id ... in a range of 5000.0 of the center of SA (0.0, 0.0, 0.0).. Would it just recreate one object at 0.0, 0.0, 0.0 then?
I'm not trying to be a dick, I'm just telling you, this include ain't so awesome and probably would work in a very small radius.. |
|
|
|
|
|
#7 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Gurgaon,India
Posts: 743
Reputation: 137
|
Quote:
Probably store X,Y,Z for each object. |
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Location: Home
Posts: 2,390
Reputation: 210
|
Also it has a very big limit which are the objects. Even the streamer can restore the same objects for all.
|
|
|
|
|
|
#9 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Nov 2007
Posts: 462
Reputation: 44
|
pawn Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [pedido]Remover | goku114 | Português/Portuguese | 2 | 13/06/2012 08:20 PM |
| [FilterScript] Remove Building For Player(Playerid,) | Crossfire1989 | Filterscripts | 11 | 05/05/2012 11:12 PM |
| Remover o Connected to | CanTLoGin | Português/Portuguese | 14 | 21/08/2011 03:41 PM |
| What's wrong with skins? GetPlayerSkin(playerid) & SetPlayerSkin(playerid, skin) | McSquizzy | Help Archive | 7 | 16/04/2010 02:27 PM |
| Help with if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && | Keeboo13 | Help Archive | 0 | 11/04/2010 05:38 AM |