24.07.2009, 08:43
nice
But this:
Wont that just check if the player that did that command had the id "255.255.255.255"?
Is better
But this:
Quote:
if(strcmp(cmd, "/sbots", true) == 0) { SendClientMessage(playerid,YELLOW,"[SAdmin] Searching for an bots..."); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new ip[16]; GetPlayerIp(playerid, ip, sizeof(ip)); if(strcmp(ip, "255.255.255.255") == 0) { format(string,256,"[SAdmin] Bot detected! IP: %d",ip); SendClientMessageToAll(ORANGE,string); Kick(playerid); return 0; } } } return 1; } |
Quote:
if(strcmp(cmd, "/sbots", true) == 0) { SendClientMessage(playerid,YELLOW,"[SAdmin] Searching for an bots..."); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new ip[16]; GetPlayerIp(i, ip, sizeof(ip)); if(!strcmp(ip, "255.255.255.255") == 0) { format(string,256,"[SAdmin] Bot detected! IP: %d",ip); SendClientMessageToAll(ORANGE,string); Kick(i); return 0; } } } return 1; } |