27.08.2011, 21:18
You create the objects under the OnPlayerRequestClass callback. Something like:
Then:
pawn Код:
//OnPlayerRequestClass
if( !IsValidObject( Some_Stupid_Object ) )
{
Some_Stupid_Object = CreateObject( ... );
}
pawn Код:
//OnPlayerRequestSpawn
if( IsValidObject( Some_Stupid_Object ) )
{
DestroyObject( Some_Stupid_Object );
Some_Stupid_Object = -1;
}