08.07.2013, 02:07
This is the code
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?
Код:
#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); }
And no, i dont have zcmd.inc, what i have to do?