mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
better code style
This commit is contained in:
parent
a073c4ae3c
commit
4d1d2b5527
@ -38,8 +38,9 @@
|
|||||||
new g_pingSum[33]
|
new g_pingSum[33]
|
||||||
new g_pingCount[33]
|
new g_pingCount[33]
|
||||||
|
|
||||||
public plugin_init()
|
public plugin_init() {
|
||||||
register_plugin("CS Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team")
|
register_plugin("CS Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team")
|
||||||
|
}
|
||||||
|
|
||||||
public client_disconnect(id) {
|
public client_disconnect(id) {
|
||||||
if ( is_user_bot(id) ) return PLUGIN_CONTINUE
|
if ( is_user_bot(id) ) return PLUGIN_CONTINUE
|
||||||
@ -51,7 +52,6 @@ public client_disconnect(id) {
|
|||||||
get_user_authid(id, szAuthid , 31 )
|
get_user_authid(id, szAuthid , 31 )
|
||||||
for (new i = 1 ; i < 31 ; ++i ) {
|
for (new i = 1 ; i < 31 ; ++i ) {
|
||||||
if ( get_user_wstats( id , i ,iStats , iHits ) ) {
|
if ( get_user_wstats( id , i ,iStats , iHits ) ) {
|
||||||
|
|
||||||
if ( i == CSW_HEGRENADE)
|
if ( i == CSW_HEGRENADE)
|
||||||
copy(szWeapon[7],16,"grenade")
|
copy(szWeapon[7],16,"grenade")
|
||||||
else
|
else
|
||||||
@ -68,7 +68,6 @@ public client_disconnect(id) {
|
|||||||
szName,iUserid,szAuthid,szTeam, (iTime / 60), (iTime % 60) )
|
szName,iUserid,szAuthid,szTeam, (iTime / 60), (iTime % 60) )
|
||||||
log_message("^"%s<%d><%s><%s>^" triggered ^"latency^" (ping ^"%d^")",
|
log_message("^"%s<%d><%s><%s>^" triggered ^"latency^" (ping ^"%d^")",
|
||||||
szName,iUserid,szAuthid,szTeam, (g_pingSum[id] / ( g_pingCount[id] ? g_pingCount[id] : 1 ) ) )
|
szName,iUserid,szAuthid,szTeam, (g_pingSum[id] / ( g_pingCount[id] ? g_pingCount[id] : 1 ) ) )
|
||||||
return PLUGIN_CONTINUE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public client_putinserver(id) {
|
public client_putinserver(id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user