12.04.2014, 05:48
So I made an /addcrane and /destroycrane for my server, here are the CMDs
But for some reason when I do /addcrane nothing happens, the object is not created.. Help anyone.
pawn Код:
new CraneObject;
CMD:addcrane(playerid, params[])
{
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.0, 0.0, 0.0);
return 1;
}
CMD:destroycrane(playerid, params[])
{
DestroyDynamicObject(CraneObject);
return 1;
}