13.11.2009, 20:20
Try something like
pawn Код:
new objects = 0;
// replace all CreateObject with CreateObjectEx
stock CreateObjectEx(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
{
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
objects++;
return 1;
}
public OnGameModeInit()
{
printf("Total objects: %d", objects);
return 0;
}