SA-MP Forums Archive
HELP:Who to add and remove items... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: HELP:Who to add and remove items... (/showthread.php?tid=308176)



HELP:Who to add and remove items... - CrnaStrela - 02.01.2012

Hello i need help ! Who doo i ADD and REMOVE items from my game mod ?? t.l.x I want to remove an bulding from the GameMod with the map EDITOR and i delite/removes the bulding whou doo i tell the GameMod that that bulding dosn't exit enymore ! Becouse i hawe some bulding in my GameMod that make my game LAG !! Pleas HELP !


Re: HELP:Who to add and remove items... - Mrkrabz - 02.01.2012

Wrong section, but if you are on about your own server use RemoveBuildingForPlayer(playerid, 0, 0.0, 0.0, 0.0, 000.0); Read up on some tutorials on how to use it or simply look at the SA-MP wiki, I'm sure its there.

There is a SA-MP Map editor by JernejL


Re: HELP:Who to add and remove items... - KingHual - 02.01.2012

Quote:
Originally Posted by CrnaStrela
Посмотреть сообщение
Hello i need help ! Who doo i ADD and REMOVE items from my game mod ?? t.l.x I want to remove an bulding from the GameMod with the map EDITOR and i delite/removes the bulding whou doo i tell the GameMod that that bulding dosn't exit enymore ! Becouse i hawe some bulding in my GameMod that make my game LAG !! Pleas HELP !
What the hell did you just say? English please?


Re: HELP:Who to add and remove items... - Mrkrabz - 02.01.2012

Quote:
Originally Posted by king_hual
Посмотреть сообщение
What the hell did you just say? English please?
Hello, I need help! how do I add and remove objects from my gamemode? t.l.x I want to remove a building from the gamemode with the map editor and I delete/remove the building how do I tell the gamemode that the building doesn't exist anymore? Because I have some buildings in my gamemode that makes my game lag! Please HELP!


Re: HELP:Who to add and remove items... - KingHual - 02.01.2012

Quote:
Originally Posted by Яeʌǝɹsǝ
Посмотреть сообщение
Hello, I need help! how do I add and remove objects from my gamemode? t.l.x I want to remove a building from the gamemode with the map editor and I delete/remove the building how do I tell the gamemode that the building doesn't exist anymore? Because I have some buildings in my gamemode that makes my game lag! Please HELP!
Oohh... Right... D: RemoveBuildingForPlayer will do the trick


Re: HELP:Who to add and remove items... - CrnaStrela - 02.01.2012

Where do i set this ---> RemoveBuildingForPlayer ?? can you show me a exemple ??


Re: HELP:Who to add and remove items... - Mrkrabz - 02.01.2012

Quote:
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;
}
yup.