[Ajuda] alguem scripter que tenha humildade
#4

#COMANDO EDITADO
USA ZMCD krl

PHP код:

CMD
:kick(playeridparams[]) 

    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"Vocк nгo tem permisгo para usar este comando!"); 
    new 
Playermotivo[74], string[144]; 
    if(
sscanf(params"us[74]"Playermotivo)) return SendClientMessage(playerid, -1"Use: /kick <playerid> <motivo>"); 
    if(!
IsPlayerConnected(Player) || playerid == Player) return SendClientMessage(playerid, -1"Player nгo conectado! Ou e vocк mesmo!"); 
    
format(stringsizeof string"Administrador: %s Kickou %s [Motivo: %s]"pName(playerid), pName(Player), motivo); 
    
SendClientMessageToAll(-1string); 
    
SetTimerEx("msgkick"2000false"i"id);

// no final 
stock pName(playerid

    static 
name[24]; 
    
GetPlayerName(playeridnamesizeof(name)); 
    return 
name

Agora tu coloca isso no comeзo

PHP код:
forward msgkick(Player)
public 
msgkick(Player)
{
    
   
Kick(Player)

Obs:Criamos um Timer para mandar o KICK dps de 2 Segundos para aparecer a mensagem.
Nгo Testei Pode dar erro caso dк me avise e baixe o ZCMD
https://sampforum.blast.hk/showthread.php?tid=91354
Se vc n tiver o ZCMD vai da erro
Reply


Messages In This Thread
alguem scripter que tenha humildade - by wainner - 06.08.2017, 20:52
Respuesta: alguem scripter que tenha humildade - by Poseidon4625 - 06.08.2017, 20:56
Re: alguem scripter que tenha humildade - by wainner - 06.08.2017, 23:58
Re: alguem scripter que tenha humildade - by GuilhermeNunes - 07.08.2017, 00:22
Re: alguem scripter que tenha humildade - by DelK - 07.08.2017, 00:24
Re: alguem scripter que tenha humildade - by SrVinnyh - 07.08.2017, 00:28
Re: alguem scripter que tenha humildade - by Jonorusc - 07.08.2017, 00:30
Re: alguem scripter que tenha humildade - by GuilhermeNunes - 07.08.2017, 00:39
Re: alguem scripter que tenha humildade - by IlanZ - 07.08.2017, 01:12
Re: alguem scripter que tenha humildade - by C4rtm4n - 07.08.2017, 01:29

Forum Jump:


Users browsing this thread: 3 Guest(s)