26.05.2015, 17:55
Hey guys I wanna delete all the objects which have 2995 as the object id, Can you tlel me how?
Is my command
Код:
COMMAND:clearlastbullets(playerid, params[]) { if(PlayerInfo[playerid][playerteam] == FBI || PlayerInfo[playerid][playerteam] == HITMAN) { for(new i = 0; i < MAX_OBJECTS; i++) if(IsValidObject(i)) { if(i == 2995 // I want to get the object ID , How will I? } } else SendClientError(playerid, "You are not allowed to use that command!"); return 1; }