Problem with zcmd and others errors
#4

This is the code

Код:
#include <a_samp>
#include <zcmd>
 
new Float:x, Float:y, Float:z, Float:ang;
new Obj;
 
forward timer();
 
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Bomber in floor.");
        print("--------------------------------------\n");
        return 1;
}
 
CMD:setbomb(playerid, params[])
{
        ClearAnimations(playerid);
        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
        GetPlayerPos(playerid, x, y, z);
                GetPlayerFacingAngle(playerid, ang);
        Obj = CreateObject(3052, x, y, z - 0.9, 0, 0, ang, 500);
        SendClientMessage(playerid, -1, "Bombs in 30 sec, run!");
                SetTimer("timer", 10000, false);
                return 1;
}
 
public timer()
{
                CreateExplosion(x, y, z, 6, 30);
                DestroyObject(Obj);
}
The other thing, what i have to delete? the #define setbomb or the other setbomb?

And no, i dont have zcmd.inc, what i have to do?
Reply


Messages In This Thread
Problem with zcmd and others errors - by ElAnonymous - 08.07.2013, 01:31
Re: Problem with zcmd and others errors - by ToiletDuck - 08.07.2013, 01:41
Re: Problem with zcmd and others errors - by Red_Dragon. - 08.07.2013, 01:46
Re: Problem with zcmd and others errors - by ElAnonymous - 08.07.2013, 02:07
Re: Problem with zcmd and others errors - by Red_Dragon. - 08.07.2013, 02:18
Re: Problem with zcmd and others errors - by ElAnonymous - 08.07.2013, 02:21
Re: Problem with zcmd and others errors - by Red_Dragon. - 08.07.2013, 02:22
Re: Problem with zcmd and others errors - by xganyx - 08.07.2013, 05:09

Forum Jump:


Users browsing this thread: 2 Guest(s)