pawn Код:
new name[16];
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp(name, "[SU]BP13", 8))
{
if(strcmp(plrIP, "YOUR IP HERE"))
{
Kick(playerid);
}
}
Yes it will work but look at what i posted above. Optimized code (i believe that "welcome blablablah" is rubbish, considering that you know your name...) + no need to ban the player, just a kick will do the trick since you might loose regular players. Also as you can see "if(!strcmp(name, "[SU]BP13",
)" compares only 8 chars so it helps those "smarter exploiters" that might add another letter at the end(as for adding a letter infront of it... you gotta figure that out on your own).