[Ajuda] Erros no GameMode
#5

Aqui esta um comando BASICO de banimento

PHP код:
 CMD:ban(playeridparams[])
{
    new 
BanIDMotivo[30], MsgALL[150];
    if( 
sscanfparams"ds[30]"BanIDMotivo )) return SendClientMessage(playerid, -1,"Use: /Ban [Id] Motivo");
    if(!
IsPlayerConnected(BanID)) return 1;
    
format(MsgALLsizeof(MsgALL), "[BAN] O Admin %s Baniu o Player %s. Motivo: %s"PlayerName(playerid), PlayerName(BanID), Motivo);
    
SendClientMessageToAll(-1MsgALL);
    
Ban(BanID);
    return 
true;

Adcione essa stock para nгo ter erros
PHP код:
stock PlayerName(playerid)
{
    new 
aname[24];
    
GetPlayerName(playeridaname24);
    return 
aname;

Reply


Messages In This Thread
Erros no GameMode - by henriqueTL - 03.08.2017, 21:57
Re: Erros no GameMode - by zCyan - 03.08.2017, 22:01
Re: Erros no GameMode - by henriqueTL - 03.08.2017, 22:02
Re: Erros no GameMode - by Relaxed - 03.08.2017, 22:06
Re: Erros no GameMode - by ScripitrFaunu - 03.08.2017, 22:07
Re: Erros no GameMode - by henriqueTL - 03.08.2017, 22:15
Re: Erros no GameMode - by Relaxed - 03.08.2017, 23:12
Re: Erros no GameMode - by MrEdu - 03.08.2017, 23:12
Re: Erros no GameMode - by henriqueTL - 03.08.2017, 23:29
Re: Erros no GameMode - by DelK - 03.08.2017, 23:36

Forum Jump:


Users browsing this thread: 2 Guest(s)