Holding object after reconnect -
Cameltoe - 15.05.2013
Hi, i am experimenting a bit with players holding objects etc.. And iv'e stumbled upon a problem were the player still holds the object after reconnect, how can i remove the object after for example a server restart? (Obviously no object id).
Kind of annoying, well.. help appreciated
AW: Holding object after reconnect -
HurtLocker - 15.05.2013
Assign the object when created, to a max_players variable and destroy the player's object on disconnect.
Re: Holding object after reconnect -
Cameltoe - 15.05.2013
pawn Код:
if(IsValidPlayerObject(playerid, PlayerVar[playerid][WorkObject])) DestroyPlayerObject(playerid, PlayerVar[playerid][WorkObject]);
I got that under onplayerdisconnect, still the player has the object attached after reconnect.
Re : Holding object after reconnect -
Rayan_black - 15.05.2013
pawn Код:
DestroyPlayerObject(playerid, objectid)
DestroyObject(objectid)
this?
Re: Re : Holding object after reconnect -
Cameltoe - 15.05.2013
Quote:
Originally Posted by Rayan_black
pawn Код:
DestroyPlayerObject(playerid, objectid) DestroyObject(objectid)
this?
|
Yes, though after an restart the variables are being reset and i can no longer destroy the object by object id ..
Re: Holding object after reconnect -
Cameltoe - 13.06.2013
Yes, well this "bug" or even scripting failure still persist.. Any ideas?
Guess i'm just using it wrong, so i'll post it here.
pawn Код:
PlayerVar[playerid][WorkObject] = SetPlayerAttachedObject(playerid, 0, 1582, 5, 0.370673, 0.047421, -0.026735, 48.223468, 0.000000, 0.000000);
DestroyPlayerObject(playerid, PlayerVar[playerid][WorkObject]);
That code does not remove the player object. So what am i doing wrong?
Re: Holding object after reconnect -
Cameltoe - 17.06.2013
This problem still exist, can't find a solution to this.
Re: Holding object after reconnect -
Cameltoe - 25.06.2013
Well, iv'e bumped this thread a couple of times now. But i still struggle with this.. Anyone know a solution to this problem ?
Re: Holding object after reconnect -
Cameltoe - 04.07.2013
Quote:
Originally Posted by Cameltoe
Well, iv'e bumped this thread a couple of times now. But i still struggle with this.. Anyone know a solution to this problem ?
|
this^
Re: Holding object after reconnect -
jamesbond007 - 04.07.2013
try this on player connect?
Код:
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
RemovePlayerAttachedObject(playerid, i);
}