RemoveBuildingForPlayer works in other public? - 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 works in other public? (
/showthread.php?tid=645795)
RemoveBuildingForPlayer works in other public? -
ByMatt20030 - 04.12.2017
Hi, like the title says...
Does RemoveBuildingForPlayer works in other public instead of OnPlayerConnect? Maybe OnPlayerSpawn or OnPlayerRequestClass?
Thanks
Re: RemoveBuildingForPlayer works in other public? -
Logok987 - 04.12.2017
I used it in OnPlayerConnect(playerid).
Like:
Код HTML:
public OnPlayerConnect(playerid)
{
//Standard Object
RemoveBuildingForPlayer(playerid, 16475, -98.1953, 1180.0703, 18.7344, 23.6159); //removeWorldObject (des_stwnbowl) (1)
return 1;
}
But I don't really know if it works in others Fuctions
Re: RemoveBuildingForPlayer works in other public? -
Lucases - 04.12.2017
It works yes, but think:
If the player connects and then goes OnPlayerRequestClass, you will remove the buildings yes. If he dies again and he goes to class selection, then you'll try some buildings that are already removed, making the player crash.
Re: RemoveBuildingForPlayer works in other public? -
ByMatt20030 - 04.12.2017
Quote:
Originally Posted by Lucases
It works yes, but think:
If the player connects and then goes OnPlayerRequestClass, you will remove the buildings yes. If he dies again and he goes to class selection, then you'll try some buildings that are already removed, making the player crash.
|
In other words...I wanted to know what happens if the function repeat with an object which was already removed.
Thank you
(Question answered)