[FilterScript] Anti Running and Shooting System
#21

Quote:
Originally Posted by Jakwob
View Post
Nice one this is cool I really could use this
No problemo! :P
Reply
#22

Someone might find this still useful.
Reply
#23

nice bump
Reply
#24

nice
Reply
#25

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.
Reply
#26

Seems to be fun, although the code could be improved. Definitely for non RW servers.
Reply
#27

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
Reply
#28

Quote:
Originally Posted by Showerr
View Post
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));
Reply
#29

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;
}

}

Reply
#30

Not active
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)