11.09.2013, 07:54
Can you try this:
It should loop through all the player's object slots and the first slot that is empty gets to be the slot for the object. Haven't tried the code yet though.
pawn Код:
for(new i = 0; i < MAX_OBJECTS_PP; i++)
{
if(oObjectID[playerid][i] != 0)
{
oObjectID[playerid][i] = CreateObject(objectid, pos[0], pos[1], pos[2], 0.0, 0.0, pos[3]);
break;
}
}