[FilterScript] Anti Running and Shooting System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti Running and Shooting System (
/showthread.php?tid=546353)
Re: Anti Running and Shooting System -
OG Killo - 19.11.2014
Quote:
Originally Posted by Jakwob
Nice one this is cool I really could use this
|
No problemo! :P
Re: Anti Running and Shooting System -
OG Killo - 25.10.2017
Someone might find this still useful.
Re: Anti Running and Shooting System -
Deadpoop - 25.10.2017
nice bump
Re: Anti Running and Shooting System -
DeLTi - 01.11.2017
nice
Re: Anti Running and Shooting System -
Romz - 01.11.2017
You forgot to use the function
GetPlayerKeys, in the code it simply does not.
But it seems to me, it will be better to use
OnPlayerWeaponShot, instead
OnPlayerUpdate.
Re: Anti Running and Shooting System -
Astralis - 05.11.2017
Seems to be fun, although the code could be improved. Definitely for non RW servers.
Re: Anti Running and Shooting System -
Showerr - 16.11.2017
bug
return kmh?floatround(rtn 100 1.61):floatround(rtn * 100);
FiveGame2017.pwn(41630) : error 001: expected token: ",", but found "-integer value-"
FiveGame2017.pwn(41630) : warning 215: expression has no effect
FiveGame2017.pwn(41630) : error 001: expected token: ";", but found ")"
FiveGame2017.pwn(41630) : error 029: invalid expression, assumed zero
Re: Anti Running and Shooting System -
CoaPsyFactor - 16.11.2017
Quote:
Originally Posted by Showerr
bug
return kmh?floatround(rtn 100 1.61):floatround(rtn * 100);
FiveGame2017.pwn(41630) : error 001: expected token: ",", but found "-integer value-"
FiveGame2017.pwn(41630) : warning 215: expression has no effect
FiveGame2017.pwn(41630) : error 001: expected token: ";", but found ")"
FiveGame2017.pwn(41630) : error 029: invalid expression, assumed zero
|
Try this
Code:
return floatround(rtn * (kmh ? 161 : 100));
Re: Anti Running and Shooting System -
Showerr - 17.11.2017
va ofer codul original no bugs +1 tnkis
Quote:
stock GetPlayerSpeed(playerid bool:kmh)
{
new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
if(IsPlayerInAnyVehicle(playerid))
GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx ,Vy,Vz);
else GetPlayerVelocity(playerid,Vx,Vy,Vz);
rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
if(kmh)
{
new i = floatround(rtn*100*1.61);
return i;
}
else
{
new i = floatround(rtn*100);
return i;
}
}
|
Re: Anti Running and Shooting System -
William02 - 20.01.2018
Not active