SA-MP Forums Archive
RemoveBuildingForPlayer doesn't work for me :c - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RemoveBuildingForPlayer doesn't work for me :c (/showthread.php?tid=517652)



RemoveBuildingForPlayer doesn't work for me :c - EddieJackson - 06.06.2014

i was mapping using map editor....i removed all building at the Angel Pine in order to create a new map for my server, after i remove and create objects, then i put it into a .pwn and then compile it, i put CreateObject at the OnFilterScriptInit, and the RemoveBuildingForPlayer at the OnPlayerConnect, the objects created well but RemoveBuildingForPlayer doesn't work! It doesn't remove any building from the server.......... D: somebody here pls help me...

** sorry if my English is bad c: **


Re: RemoveBuildingForPlayer doesn't work for me :c - GeekSiMo - 06.06.2014

Try RemoveBuildingForPlayer in FilterscriptInit ?!


Re: RemoveBuildingForPlayer doesn't work for me :c - Clergy - 06.06.2014

try putting it under gamemodeinit in your gamemode scripts and see if it works!?


Re: RemoveBuildingForPlayer doesn't work for me :c - GeekSiMo - 06.06.2014

Try FilterscriptInit or GamemodeInit !?!


Re: RemoveBuildingForPlayer doesn't work for me :c - Parallex - 06.06.2014

You all are stupid, tbh.
There is no parameter "playerid" In OnGameModeInit or OnFilterscriptInit


Respuesta: RemoveBuildingForPlayer doesn't work for me :c - SickAttack - 06.06.2014

It should work if you put it under OnPlayerConnect.


Re: RemoveBuildingForPlayer doesn't work for me :c - BroZeus - 06.06.2014

put removebuilding code under OnPlayerConnect in Game Mode script


Re: RemoveBuildingForPlayer doesn't work for me :c - EddieJackson - 06.06.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
put removebuilding code under OnPlayerConnect in Game Mode script
Thanks! xD