10.02.2012, 23:33
hi,
how can i make it like a player also can keep the attached object after death?
thx
how can i make it like a player also can keep the attached object after death?
thx
public OnPlayerSpawn(playerid)
{
if(ObjectAttached[playerid] == 1)
{
SetPlayerAttachedObject(playerid, 3, 1609, 2); //That is a random object. Put this for whatever you had.
}
else
}
yes i know the method u mentioned but if there is a kinda shop and players can buy clothes/objects there are many different objects so how to know what object shall be reattached after death?
|
Well I think for that, you would need to do many different variables for each object.
|
Object[playerid] = 1;
Object[playerid] = 2;
if(Object[playerid] == 1)
{
//code
}
if(Object[playerid] == 2)
{
//code
}