19.11.2014, 10:00
[FilterScript] Anti Running and Shooting System
25.10.2017, 11:16
Someone might find this still useful.
25.10.2017, 18:22
nice bump
01.11.2017, 22:39
nice
01.11.2017, 23:04
You forgot to use the function GetPlayerKeys, in the code it simply does not.
![](https://i.imgur.com/DYOy21w.png)
But it seems to me, it will be better to use OnPlayerWeaponShot, instead OnPlayerUpdate.
![](https://i.imgur.com/DYOy21w.png)
But it seems to me, it will be better to use OnPlayerWeaponShot, instead OnPlayerUpdate.
05.11.2017, 09:37
Seems to be fun, although the code could be improved. Definitely for non RW servers.
16.11.2017, 12:45
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
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
16.11.2017, 13:29
Quote:
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 |
Code:
return floatround(rtn * (kmh ? 161 : 100));
17.11.2017, 18:44
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; } } |
20.01.2018, 19:50
Not active
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)