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
}
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
}