CMD not working
#6

I was able to spawn a crane successfully using this:

pawn Код:
#include <a_samp>
#include <zcmd>
#include <streamer>

new CraneObject;

CMD:addcrane(playerid, params[])
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    CraneObject = CreateDynamicObject(1378, X, Y, Z, 0.00, 0.00, 0.00, 0, 0, -1, 300.0);
   
    SendClientMessage(playerid, -1, "Spawned crane object!");
    return 1;
}

CMD:destroycrane(playerid, params[])
{
    DestroyDynamicObject(CraneObject);
    return 1;
}
Not sure why it won't work for you. Make sure you move in order to see the object.
Reply


Messages In This Thread
CMD not working - by Mriss - 12.04.2014, 05:48
Re: CMD not working - by Dignity - 12.04.2014, 05:51
Re: CMD not working - by Mriss - 12.04.2014, 06:03
Re: CMD not working - by Dignity - 12.04.2014, 06:04
Re: CMD not working - by Mriss - 12.04.2014, 06:08
Re: CMD not working - by Dignity - 12.04.2014, 06:13
Re: CMD not working - by Mriss - 12.04.2014, 06:18
Re: CMD not working - by Dignity - 12.04.2014, 06:22
Re: CMD not working - by Mriss - 12.04.2014, 06:25
Re: CMD not working - by Dignity - 12.04.2014, 06:27

Forum Jump:


Users browsing this thread: 2 Guest(s)