Random fire
#3

first, to make EVERYTHING easy, include sscanf/sscanf2 and ZCMD

pawn Code:
#include <sscanf2>
#include <zcmd>
then use this code, comments will explain everything.

pawn Code:
#if defined German
CMD:feuer(playerid, params[]) return cmd_fire(playerid, params);
#endif
CMD:fire(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new Float:fireX, Float:fireY, Float:fireZ; // Fire Coordinates values
       
        if(sscanf(params, "fff", fireX, fireY, fireZ)) return SendClientMessage(playerid, -1 "[Usage] /fire <x> <y> <z>"); // decide coords for your fire
        CreateFire(fireX, fireY, fireZ); // create the fire.
        return 1;
}
Reply


Messages In This Thread
Random fire - by Astonish - 03.05.2018, 11:52
Re: Random fire - by jasperschellekens - 03.05.2018, 12:02
Re: Random fire - by SeanDenZYR - 03.05.2018, 12:08
Re: Random fire - by Astonish - 03.05.2018, 13:20
Re: Random fire - by Astonish - 04.05.2018, 11:10
Re: Random fire - by Astonish - 04.05.2018, 23:21
Re: Random fire - by CyNiC - 05.05.2018, 04:07
Re: Random fire - by Astonish - 06.05.2018, 15:05
Re: Random fire - by GTLS - 07.05.2018, 11:00
Re: Random fire - by Jstylezzz - 07.05.2018, 14:27

Forum Jump:


Users browsing this thread: 3 Guest(s)