24.02.2011, 20:04
Divirta-se.
pawn Код:
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;
}