RemoveBuildingForPlayer - 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 (
/showthread.php?tid=359591)
RemoveBuildingForPlayer -
stormchaser206 - 14.07.2012
Hello,
I had these lines in OnPlayerConnect, and it didn't work. So where do I put it?
Thanks,
stormchaser206.
Re: RemoveBuildingForPlayer -
Captain_Mani - 14.07.2012
Add them under OnGameModeInit.
Re: RemoveBuildingForPlayer -
stormchaser206 - 14.07.2012
Theres no playerid parameter for OnGameModeInIt
Re: RemoveBuildingForPlayer -
Captain_Mani - 14.07.2012
Oh add it OnPlayerSpawn
Re: RemoveBuildingForPlayer -
stormchaser206 - 14.07.2012
Quote:
Originally Posted by Captain_Mani
Oh add it OnPlayerSpawn
|
Doesn't work.
Re : RemoveBuildingForPlayer -
andrew2695 - 14.07.2012
OnPlayerConnect:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Re: Re : RemoveBuildingForPlayer -
stormchaser206 - 14.07.2012
Quote:
Originally Posted by andrew2695
OnPlayerConnect:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
|
Quote:
I had these lines in OnPlayerConnect, and it didn't work.
|
See?
Re: RemoveBuildingForPlayer -
devil shill - 14.07.2012
Maybe an idea to put it into a filterscript or something
it worked for me so.
Re: RemoveBuildingForPlayer -
Ballu Miaa - 14.07.2012
Usage under OnGameModeInIt:
pawn Код:
for(newi=0;i<=MAX_PLAYERS;i++)
{
RemoveBuildingForPlayer(i, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius); // Deletes it for every player
}
Under OnPlayerConnect:
pawn Код:
RemoveBuildingForPlayer(playerid, ObjectID, Float:fX, Float:fY, Float:fZ, Float:fRadius);
Re: RemoveBuildingForPlayer -
Captain_Mani - 15.07.2012
But it worked for me under OnPlayerSpawn