RemoveBuildingForPlayer works in other public?
#1

Hi, like the title says...

Does RemoveBuildingForPlayer works in other public instead of OnPlayerConnect? Maybe OnPlayerSpawn or OnPlayerRequestClass?

Thanks
Reply
#2

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
Reply
#3

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.
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)