Object IDs
#1

How to give out to my objects i've created with this command ids.

PHP код:
new ObjectIDModelIDFloat:oXFloat:oYFloat:oZ;
new 
ObjectSpawned[MAX_PLAYERS];
CMD:object(playerid,params[])
{
  if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"Command not found! Type /cmds");
  if(
sscanf(params"i",ModelID)) return SendClientMessage(playerid,red,"Create object: /object <model>");
  {
    
GetPlayerPos(playerid,oX,oY,oZ);
    
ObjectID CreateObject(ModelID,oX,oY,oZ,0,0,0);
    
EditObject(playerid,ObjectID);
    
ObjectSpawned[playerid] = 1;
  }
  return 
1;

Example: "Object id: 1 ModelID 19128"
"Object id: 2 ModelID 19125" etc..

Thanks
Reply


Messages In This Thread
Object IDs - by TuNiSiAnO1 - 03.12.2014, 03:05
Re: Object IDs - by zT KiNgKoNg - 03.12.2014, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)