if(GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER) {
new aname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, aname, sizeof(aname));{
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
Ban(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == WEAPON_HEATSEEKER) {
new aname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
Ban(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == WEAPON_FLAMETHROWER) {
new aname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
Ban(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
new aname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(playerid,COLOR_WHITE,"******************************************************************");
SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(playerid,COLOR_WHITE,"******************************************************************");
Ban(playerid);
return 0;
}
return 1;
}
if(GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER) { if(IsPlayerAdmin(playerid)) return false; new aname[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, aname, sizeof(aname));{ format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._."); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); Ban(playerid); return 1; } if(GetPlayerWeapon(playerid) == WEAPON_HEATSEEKER) { if(IsPlayerAdmin(playerid)) return false; new aname[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, aname, sizeof(aname)); format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._."); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); Ban(playerid); return 1; } if(GetPlayerWeapon(playerid) == WEAPON_FLAMETHROWER) { if(IsPlayerAdmin(playerid)) return false; new aname[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, aname, sizeof(aname)); format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._."); SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************"); Ban(playerid); return 1; } if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) { if(IsPlayerAdmin(playerid)) return false; new aname[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, aname, sizeof(aname)); format(string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid); SendClientMessage(playerid,COLOR_WHITE,"******************************************************************"); SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._."); SendClientMessage(playerid,COLOR_WHITE,"******************************************************************"); Ban(playerid); return 0; } return 1; }
static aname[MAX_PLAYER_NAME];
static string[128];
for(new i; i < MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
if(GetPlayerWeapon(i) == WEAPON_ROCKETLAUNCHER)
{
if(IsPlayerAdmin(i)) return false;
GetPlayerName(i, aname, sizeof(aname));
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
SendClientMessage(i,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
Ban(i);
return false;
}
if(GetPlayerWeapon(i) == WEAPON_HEATSEEKER)
{
if(IsPlayerAdmin(i)) return false;
GetPlayerName(i, aname, sizeof(aname));
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
SendClientMessage(i,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
Ban(i);
return false;
}
if(GetPlayerWeapon(i) == WEAPON_FLAMETHROWER)
{
if(IsPlayerAdmin(i)) return false;
GetPlayerName(i, aname, sizeof(aname));
format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
SendClientMessage(i,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(i,COLOR_WHITE,"*****************************************************************");
Ban(i);
return false;
}
if(GetPlayerWeapon(i) == WEAPON_MINIGUN)
{
if(IsPlayerAdmin(i)) return false;
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
SendClientMessage(i,COLOR_WHITE,"******************************************************************");
SendClientMessage(i,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
SendClientMessage(i,COLOR_WHITE,"******************************************************************");
Ban(i);
return false;
}
}
}
return 1;
}
Boa tarde.
Assim, eu fiz um anti-cheat. Sу que mesmo sendo admin eu nгo consigo pegar a arma proibida pelo anti-cheat. Aqui estб code: pawn Код:
Creio eu que tenha que usar um loop, sу que tentei de uma maneira que deu totalmente fail. UEHUHE Ai decidir pedir a ajuda de vocкs. Obrigado pela atenзгo. ^^ |
Foi tu. Mas tu fez errado. Ai eu que tive que correr atraz para arrumar. #fikdik
UHEUEHE' |