03.05.2018, 12:08
first, to make EVERYTHING easy, include sscanf/sscanf2 and ZCMD
then use this code, comments will explain everything.
pawn Code:
#include <sscanf2>
#include <zcmd>
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;
}