#include <a_samp>
new ArbolObj[10];
new Text3D:Arbol3D;
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(":D Бrbol");
	print("--------------------------------------\n");
	return 1;
}
public OnFilterScriptExit()
{
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/creararbol", cmdtext, true, 10) == 0)
	{
	    new Float:x, Float:y, Float:z;
	    GetPlayerPos(playerid, x, y, z);
		Arbol(x, y, z, false);
		return 1;
	}
	if (strcmp("/eliminararbol", cmdtext, true, 10) == 0)
	{
	    new Float:x, Float:y, Float:z;
	    GetPlayerPos(playerid, x, y, z);
		Arbol(x, y, z, true);
		return 1;
	}
	return 0;
}
stock Arbol(Float:x, Float:y, Float:z, bool:eliminar)
{
if(eliminar==false)
{
	ArbolObj[0] = CreateObject(19076, x, y, z-1.0,0.0,0.0,300);
	ArbolObj[1] = CreateObject(19054, x, y+1.0, z-0.4,0,0,0.0,300);
    ArbolObj[2] = CreateObject(19058, x+1.0, y, z-0.4,0,0,0.0,300);
    ArbolObj[3] = CreateObject(19056, x, y-1.0, z-0.4,0,0,0.0,300);
    ArbolObj[4] = CreateObject(19057, x-1.0, y, z-0.4,0,0,0.0,300);
    ArbolObj[5] = CreateObject(19058, x-1.5, y+1.5, z-1.0,0,0,0.0,300);
    ArbolObj[6] = CreateObject(19055, x+1.5, y-1.5, z-1.0,0,0,0.0,300);
    ArbolObj[7] = CreateObject(19057, x+1.5, y+1.5, z-1.0,0,0,0.0,300);
    ArbolObj[8] = CreateObject(19054, x-1.5, y-1.5, z,0,0,0.0,300);
    ArbolObj[9] = CreateObject(3526, x, y, z-1.0,0,0,0,300);
	Arbol3D = Create3DTextLabel("Бrbol de navidad\nUsa /regalo", -1, x, y, z-0.4, 12, 0, 0);
}else{
	for(new i; i<10; i++)
	{
	DestroyObject(ArbolObj[i]);
	}
	Delete3DTextLabel(Arbol3D);
}
}
| tal vez te siva esto. https://sampforum.blast.hk/showthread.php?tid=483446 https://sampforum.blast.hk/showthread.php?tid=476880 saludos. EDIT: editaste el mensaje. -.- | 
zcmd(arbol, playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(strcmp(params,"crear",true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Arbol(x, y, z, false);
return 1;
}
if(strcmp(params,"eliminar",true) == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Arbol(x, y, z, true);
return 1;
}
}
return true;
}
| pawn Код: 
 | 
| Gracias pero como hago para que al reiniciar el servidor quede el arbol? | 
printf("Arboles Guardados: %d (MAX: %d)", cuenta, MAX_ARBOLES);
cuenta = 0;
for(new x=1; x<=TotalArboles; x++)
{
SaveArboles(x); //Guardado de Arboles
cuenta++;
}