Spawning an object.
#1

I am making a furniture system, and I want to spawn the object which he chooses in the menu to the player's location. Can you send to me the edited Code?

Код:
 public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == objects)
	{
	    if(response)
	    
	    {
            new Float:x, Float:y, Float:z;
new modelid;
	    
		    SCM(playerid, RED, "Object Spawned");
	    	CreateDynamicObject(modelid, x,y,z);
	    }
	    else SendClientMessage(playerid, 0xFF0000FF, "Canceled");
    	return 1;
	}
}
Reply
#2

Can someone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)