19.03.2011, 09:02
hello all.
so, I have problem with armour ah.. I get banned, when I just connect.
Script:
#define SetPlayerArmourEx(%0,%1) SetPVarInt(%0,"Armour",GetPlayerArmourEx(%0)+%1),S etPlayerArmour(%0,%1)
#define ResetPlayerArmourEx(%0) SetPVarInt(%0,"Armour",0),SetPlayerArmour(%0, 0)
#define GetPlayerArmourEx(%0) GetPVarInt(%0,"Armour")
script in 1s timer:
so, I have problem with armour ah.. I get banned, when I just connect.
Script:
#define SetPlayerArmourEx(%0,%1) SetPVarInt(%0,"Armour",GetPlayerArmourEx(%0)+%1),S etPlayerArmour(%0,%1)
#define ResetPlayerArmourEx(%0) SetPVarInt(%0,"Armour",0),SetPlayerArmour(%0, 0)
#define GetPlayerArmourEx(%0) GetPVarInt(%0,"Armour")
script in 1s timer:
pawn Код:
new
Float: Sarvai = GetPlayerArmour( ID, Sarvai )
;
if( Sarvai > 0 && Sarvai > GetPlayerArmourEx( ID ) )
{
format( Stringas, 135, ""#h_Balta"["#h_Melyna"PRANEРIMAS"#h_Balta"]: Юaidлjas %s buvo "#h_Raudona"UЮBLOKUOTAS. "#Balta"[Рarvш иytai]", ZaidejoVardas( ID ) );
SendClientMessageToAll( -1, Stringas );
BanEx( ID, "[AC] Рarvш иytai." );
}