05.10.2012, 15:16
Badly scripted
That isnt the modelid you need to attach, its the object name.
eg
pawn Код:
CreateObject(910, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(910, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
//And
public dumpsterdeletetimer()
{
DestroyObject(910);
}
eg
pawn Код:
new object[MAX_PLAYERS];//Outside of any callbacks
object[playerid] = CreateObject(910, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(object[playerid], playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
pawn Код:
public dumpsterdeletetimer()
{
DestroyObject(object[playerid]);
}