25.05.2010, 10:55
pawn Код:
CMD:plant(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
//MapAndreas_Init(2);
//MapAndreas_FindZ_For2DCoord(x, y, z);
CreateObject(1279, x, y, z, 0, 0, 0);
return 1;
}
But if i uncomment the MapAndreas stuff and then type the command ingame it will show: Unknown Command
Although if i comment the MapAndreas stuff and then type the command ingame it will plant the object, But in the air as its using the players Z coord,
How to stop this?