Quote:
Originally Posted by Andre9977
You could do:
pawn Код:
new BANTags[] = { "[POOP]", "[Rstar]", "[ROOK]" };
// ... for(new a = 0; a < sizeof(BANTags); a++) { if(strfind(pName, a, true) == 0) { // ... } }
Or
pawn Код:
new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); if(strfind(pName, "[POOP]", true) == 0 || strfind(pName, "[PSF]", true) == 0) { Ban(playerid); }
|
well it is possible i think this:
pawn Код:
if(strfind(pName, "[HAXER]", true) == 0
{
Ban(playerid);
}
if(strfind(pName, "[IDIOT]", true) == 0
{
Ban(playerid);
}
Or ?