25.02.2016, 15:43
desconozco ese error y no se si sea provocado por el comando, me parece qe no
Код:
CMD:kick(playerid,params[]) { if (PlayerInfo[playerid][pAdmin] >= 1) { new id,n[MAX_PLAYER_NAME],reason[128], on[MAX_PLAYER_NAME], string[128], string2[128]; if(sscanf(params,"us[128]",id, reason)) return SendClientMessage(playerid,red,"Usa:/kick [JugadorID] [reason]"); if(playerid == INVALID_PLAYER_ID) SendClientMessage(playerid,red,"System: Invalid ID"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, red, "System: Invalid ID"); if(playerid == id) return SendClientMessage(playerid,red, "Tu no puedes kickearte tu mismo."); GetPlayerName(playerid,n,sizeof(n)); GetPlayerName(id,on,sizeof(on)); new Aсo, Mes, Dia, Hora, Minutos, Segundos; getdate(Aсo, Mes, Dia); gettime(Hora, Minuose, Segundos); format(string,sizeof(string),"Tu has sido expulsado por un admin %s por: %s - %02d/%02d/%d - %02d:%02d:%02d",n,razon,Dia,Mes,Aсo,Hora,Minuto,Segundos); SendClientMessage(id,red,string); format(string2, sizeof(string), "Admin %s (%d) ha kickeado %s (%d) - Razon: %s - %02d/%02d/%d - %02d:%02d:%02d",n,playerid,on,id,razon,Dia,Mes,Aсo,Hora,Minutos,Segundos); SendClientMessageToAll(red,string2); KickLog(string2); Kick(id); } return 1; }