Fire Script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Fire Script (
/showthread.php?tid=566490)
Fire Script -
DavidSparks - 06.03.2015
Hey guys,
I would just like to know, is there any working fire script out there? That creates random fires? Good for roleplay servers etc.
Because I have really tried to find a script like this but nah not really working out so far. So do you know any script like this? And if it doesn't exist, how can you script it?
Re: Fire Script -
SoldierX - 06.03.2015
Yes it does. Use the one I use,
Код:
//------------------------------------------[Fire System]----------------------------//
if(strcmp("/fire", cmd, true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new Float:x, Float:y, Float:z, Float:a;
GetXYInFrontOfPlayer(playerid, x, y, z, a, 2.5);
AddFire(x, y, z);
return 1;
}
}
You can change the system a bit so that only Rcon Admin can use it.
Re: Fire Script -
SoldierX - 06.03.2015
-repost, sorry-
Re: Fire Script -
DavidSparks - 06.03.2015
Quote:
Originally Posted by SoldierX
Yes it does. Use the one I use,
Код:
//------------------------------------------[Fire System]----------------------------//
if(strcmp("/fire", cmd, true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new Float:x, Float:y, Float:z, Float:a;
GetXYInFrontOfPlayer(playerid, x, y, z, a, 2.5);
AddFire(x, y, z);
return 1;
}
}
You can change the system a bit so that only Rcon Admin can use it.
|
Well...
Код:
error 017: undefined symbol "GetXYInFrontOfPlayer"
error 017: undefined symbol "AddFire"
To not mention...
Код:
warning 203: symbol is never used: "a"
warning 203: symbol is never used: "z"
warning 203: symbol is never used: "y"
warning 203: symbol is never used: "x"