[Ajuda] Comando fakeban e fakekick
#6

Код:


CMD:fakeban(playerid,params[])
{
    if(Logado[playerid] == false)
		return SendClientMessage(playerid,Vermelho,"[ERRO] Vocк deve logar primeiro.");
   	 
    static
		Banido,
		PlayerID,
		Motivo[70]
	;
	
    if(sscanf(params,"ds[70]",Banido,Motivo))
    	return SendClientMessage(PlayerID,Vermelho,"[INFO] /fakeban [playerid] [motivo]");
    	
    if(!IsPlayerConnected(Banido))
	    return SendClientMessage(playerid,Vermelho,"[ERRO] Jogador nгo estб conectado.");
	    
    new string[215];
    format(string, sizeof(string), "[WLServer] O administrador %s, baniu, %s. [Motivo: %s]", rNome(playerid), rNome(PlayerID), Motivo);
    SendClientMessageToAll(Laranja, string);
    
    format(string, sizeof(string),"{FFF000}Ч {FF0000}%s {FFFFFF}saiu do servidor. [{FF0000}Kickado/Banido{FFFFFF}]", rNome(Banido));
    SendClientMessageToAll(Amarelo, string);
    
    SendClientMessage(Banido, 0xA9C4E4, "The sever closed connection");
    return 1;
}

CMD:fakekick(playerid,params[])
{
    if(Logado[playerid] == false)
    	return SendClientMessage(playerid,Vermelho,"[ERRO] Vocк deve logar primeiro.");
    	
    new
		Kickado,
		PlayerID,
		Motivo[70]
	;
	
    if(sscanf(params,"ds[70]",Kickado,Motivo))
    	return SendClientMessage(playerid,Vermelho,"[INFO] /kick [playerid] [motivo]");
    	
    if(!IsPlayerConnected(Kickado))
    	return SendClientMessage(PlayerID,Vermelho,"[ERRO] Jogador nгo estб conectado.");
    	
    new string[140];
    format(string, sizeof(string), "[WLServer] O administrador %s, kickou, %s. [Motivo: %s]", rNome(playerid), rNome(PlayerID), Motivo);
    SendClientMessageToAll(Laranja, string);
    format(string, sizeof(string),"{FFF000}Ч {FF0000}%s {FFFFFF}saiu do servidor. [{FF0000}Kickado/Banido{FFFFFF}]", rNome(Kickado));
    SendClientMessageToAll(Amarelo, string);
    
    SendClientMessage(Banido, 0xA9C4E4, "The sever closed connection");
    return 1;
}
Reply


Messages In This Thread
Comando fakeban e fakekick - by dinhocap - 13.02.2013, 05:25
Re: Comando fakeban e fakekick - by Nill.Oliveira - 13.02.2013, 05:35
Re: Comando fakeban e fakekick - by zSuYaNw - 13.02.2013, 05:40
Re: Comando fakeban e fakekick - by dinhocap - 13.02.2013, 05:50
Re: Comando fakeban e fakekick - by Nill.Oliveira - 13.02.2013, 06:08
Re: Comando fakeban e fakekick - by zSuYaNw - 13.02.2013, 06:18
Re: Comando fakeban e fakekick - by @Riichard - 13.02.2013, 14:04

Forum Jump:


Users browsing this thread: 5 Guest(s)