27.08.2011, 21:23
or you can do
TRY IT.
pawn Код:
new object;
public OnPlayerRequestClass(playerid, classid)
{
object = CreateObject(ID,X,Y,Z,Xr,Yr,Zr,DrawDistance); // THIS WILL CREATE OBJECT WHEN PLAYER IS ON REQUEST CLASS SELECTION
return 1;
}
public OnPlayerSpawn(playerid)
{
DestroyObject(object); // THIS WILL DESTROY OBJECT WHEN PLAYER SPAWN
return 1;
}