if(PlayerInfo[playerid][pSocio] == 1)
public CheckHack() // Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
}
pSocio
public CheckHack() // Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
if(!PlayerInfo[playerid][pSocio])
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!",giveplayer,i);
}
ABroadCast(COLOR_LIGHTRED,string,1);
}
public CheckHack() // Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
if(!PlayerInfo[giveplayer][pSocio])
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!",giveplayer,i);
}
ABroadCast(COLOR_LIGHTRED,string,1);
}
Tenta assim:
pawn Код:
![]() |
public CheckHack()// Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && PlayerInfo[giveplayer][pSocio] && spawnado[i] > 0) {
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK) {
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
}
public CheckHack()// Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0) {
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[giveplayer][pSocio])
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
}
Tenta assim:
pawn Код:
![]() |
public CheckHack() // Anti Xiter de Armas e Jet Pack
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
if(!PlayerInfo[i][pSocio])
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!",giveplayer,i);
}
ABroadCast(COLOR_LIGHTRED,string,1);
}
public CheckHack() // Anti Xiter de Armas e Jet Pack
{
new playerid; playerid<MAX_PLAYERS; playerid++;// editei essa linha
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
// JetPack
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
if(PlayerInfo[playerid][pSocio] >= 1)// acrescentei essa
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack /tv nele rapido!",giveplayer,i);
}
ABroadCast(COLOR_LIGHTRED,string,1);
}