[Pedido] Modo de banir um player;
#5

pawn Код:
#include "a_samp.inc"
#include "zcmd.inc"
#include "sscanf2.inc"


public OnPlayerConnect(playerid) {

    static file[30], name[24];
    format(file, 30, "%s.ban", (GetPlayerName(playerid, name, 24), name));
   
    if(fexist(file))
        return Kick(playerid);
       
    return 1;
}


cmd(ban, playerid, params[]) {

    static id;
    if(sscanf(params, #u, id))
        return 1;
       
    if(!IsPlayerConnected(id))
        return 1;
       
    static file[30], name[24];
    format(file, 30, "%s.ban", (GetPlayerName(playerid, name, 24), name));
    fclose(fopen(file, io_write));
       
    return Kick(id);
}
Reply


Messages In This Thread
Modo de banir um player; - by Ley - 04.10.2012, 23:55
Re: Modo de banir um player; - by Ley - 05.10.2012, 00:46
Re: Modo de banir um player; - by Maklister - 05.10.2012, 04:00
Re: Modo de banir um player; - by Rhayziin - 05.10.2012, 06:05
Re: Modo de banir um player; - by Jason` - 05.10.2012, 10:14
Re: Modo de banir um player; - by WeenSoares_ - 05.10.2012, 14:21
Re: Modo de banir um player; - by Ley - 05.10.2012, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)