Reason
#1

Well, for somereason when I kick someone it just doesn't write the reason, the reason is just empty.

PHP код:
CMD:kick(playeridcmdtext[], reason[])
{
    new
        
idx 0,
        
idx2 0,
        
tmp[256],
        
tmp2[256],
        
string[128];
    
tmp strtok(cmdtextidx);
    
tmp2 strtok(reasonidx2);
    new 
id strval(tmp);
    if(
GetPVarInt(playerid"Admin") != 1) return 0;
    if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_WHITE"[USAGE:] /kick [playerid] [reason]");
    
format(stringsizeof(string), "AdmCmd: %s was kicked by %s, reason: %s"GetName(id), GetName(playerid), tmp2);
    
SendClientMessageToAll(COLOR_REDstring);
    
Kick(id);
    return 
1;

Reply


Messages In This Thread
Reason - by Tomer!.$ - 28.04.2012, 06:54
Re: Reason - by Twisted_Insane - 28.04.2012, 06:58
Re: Reason - by Tomer!.$ - 28.04.2012, 07:04
Re: Reason - by James Coral - 28.04.2012, 07:06
Re: Reason - by Tomer!.$ - 28.04.2012, 07:11
Re: Reason - by James Coral - 28.04.2012, 07:12
Re: Reason - by Tomer!.$ - 28.04.2012, 07:17
Re: Reason - by James Coral - 28.04.2012, 07:18

Forum Jump:


Users browsing this thread: 1 Guest(s)