Spawning an object. -
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;
}
}
Re: Spawning an object. -