SA-MP GetObjectId of all objects
#1

Hey guys I wanna delete all the objects which have 2995 as the object id, Can you tlel me how?
Код:
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;
}
Is my command
Reply


Messages In This Thread
SA-MP GetObjectId of all objects - by MafiaOink - 26.05.2015, 17:55
Re: SA-MP GetObjectId of all objects - by Konstantinos - 26.05.2015, 18:00
Re: SA-MP GetObjectId of all objects - by MafiaOink - 26.05.2015, 18:04
Re: SA-MP GetObjectId of all objects - by Konstantinos - 26.05.2015, 18:09
Re: SA-MP GetObjectId of all objects - by MafiaOink - 26.05.2015, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)