System error
#4

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;
}
Reply


Messages In This Thread
System error - by NV1D3ATD - 23.02.2016, 20:54
Re: System error - by Jastak - 24.02.2016, 01:22
Re: System error - by NV1D3ATD - 24.02.2016, 13:56
Respuesta: System error - by FelipeAndres - 25.02.2016, 15:43
Respuesta: System error - by FelipeAndres - 25.02.2016, 15:46
Respuesta: System error - by Goncho28 - 25.02.2016, 16:54
Respuesta: System error - by Swedky - 26.02.2016, 02:05

Forum Jump:


Users browsing this thread: 1 Guest(s)