[ AMXX ] OutStanding Ping Faker - NO#1

In jos

descarca [ AMXX ] OutStanding Ping Faker - NO#1

Mesaj Scris de CelRau la data de Sam Noi 26, 2016 11:01 am

Descriere: Jucatorii au ping fake.
De ce sa folosim acest plugin si nu altele?
Pentru ca este un plugin facut de echipa Outstanding si acest plugin este simplu si nu consuma deloc momerie ram, procesor etc..
Nu sunt buguri si ruleaza perfect de peste 5 ani de zile de cand este facut.

Descarcare:
Spoiler:
/* ----------------------------------------
Ping Faker - Oustanding

(c) CsOutStanding.Com
Plugin Creator: Hattrick
--------------------------------------- */


#include amxmodx
#include fakemeta

new g_Argping[33][3], g_Offset[ 33 ][ 2 ];

public plugin_init()
{
register_forward(FM_UpdateClientData,"Data");
set_task(2.0,"Calcu",232222,_,_,"b");
register_event("DeathMsg","Fix","a");
register_event("TeamInfo","Fix","a");
}

public Fix(){
static i,fpf;
if(!fpf)fpf=get_maxplayers();
for(i=1;i<=fpf;i++){
if(is_user_connected(i))
Data(i);}}

public Calcu(){
static Iterator, ping,fpf;
if(!fpf)fpf=get_maxplayers();
for(Iterator=1;Iterator<=fpf;Iterator++ ) {
ping=random_num(1,46); // Aici setezi tu sa fie random numerele de la x la x
for (g_Offset[Iterator][0] = 0; g_Offset[Iterator][0] < 4; g_Offset[Iterator][0]++){
if ((ping - g_Offset[Iterator][0]) % 4 == 0){
g_Argping[Iterator][0] = (ping - g_Offset[Iterator][0]) / 4;
break;
}
}
for (g_Offset[Iterator][1] = 0; g_Offset[Iterator][1] < 2; g_Offset[Iterator][1]++){
if ((ping - g_Offset[Iterator][1]) % 2 == 0){
g_Argping[Iterator][1] = (ping - g_Offset[Iterator][1]) / 2;
break;
}
}
g_Argping[Iterator][2] = ping;
}
}

public Data(i){
static j,send,fpf;
if(!(pev(i,pev_button)&IN_SCORE)&&!(pev(i,pev_oldbuttons)&IN_SCORE)) return;
if(!fpf)fpf=get_maxplayers();
send=0;
for(j=1;j<=fpf;j++ ) {
if(!is_user_connected(j))continue;
switch(send){
case 0:{
message_begin(MSG_ONE_UNRELIABLE,SVC_PINGS,_,i);
write_byte((g_Offset[j][0]*64)+(1+2*(j-1)));
write_short(g_Argping[j][0]);
send ++;
}
case 1:{
write_byte((g_Offset[j][1]*128)+(2+4*(j-1)));
write_short(g_Argping[j][1]);
send ++;
}
case 2:{
write_byte((4+8*(j-1)));
write_short(g_Argping[j][2]);
write_byte(0);
message_end();
send = 0;
}
}
}
if( send){
write_byte(0);
message_end();
}
}

Nume: Outstanding Ping Faker
Versiune: 1.x

Instalare:
1. Fisierul pingfaker.sma il puneti in addons/amxmodx/scripting
2. Fisierul pingfaker.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
pingfaker.amxx

Cum setam pingul pe care-l vrem?
Ne ducem la linia 33 si aici avem asa:

Cod:
ping=random_num(1,46);

1,46 - adica ping random cu numerele de la 1 la 46.
avatar
CelRau
Registered user
Registered user

Mesaje : 184
Data de inscriere : 26/11/2016

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum