[Include] Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include)
#9

pawn Код:
stock Extra_Ban(playerid, reason[])
{
        SendClientMessage(playerid,-1,reason);
        Banned[playerid] = 1;
        new file[200];
        format(file,sizeof(file),"Extra/%s.ini",GetName(playerid));
        Extra_IntSet(file,"Ban",1);
        SetTimer("KickPlayer",3000,false);
        return 1;
}
Why are you using 200 cells for something that would only need about ~35 cells?

pawn Код:
stock Extra_UnBan(playername[])
{
        new file[200]
        format(file,sizeof(file),"Extra/%s.ini",playername);
        Extra_IntSet(file,"Ban",0);
        return 1;
}
 
stock Extra_Mute(playerid, reason[])
{
        new file[200]
        format(file,sizeof(file),"Extra/%s.ini",GetName(playerid));
        Extra_IntSet(file,"Mute",1);
        Muted[playerid] = 1;
        return 1;
}
 
stock Extra_UnMute(playerid, reason[])
{
        new file[200]
        format(file,sizeof(file),"Extra/%s.ini",GetName(playerid));
        Extra_IntSet(file,"Mute",0);
        Muted[playerid] = 0;
        return 1;
}
 
stock Extra_Freeze(playerid, reason[])
{
        new file[200]
        format(file,sizeof(file),"Extra/%s.ini",GetName(playerid));
        Extra_IntSet(file,"Freeze",1);
        Freezed[playerid] = 1;
        TogglePlayerControlLabel(playerid,0);
        return 1;
}
 
stock Extra_UnFreeze(playerid, reason[])
{
        new file[200]
        format(file,sizeof(file),"Extra/%s.ini",GetName(playerid));
        Extra_IntSet(file,"Freeze",0);
        Freezed[playerid] = 0;
        TogglePlayerControlLabel(playerid,1);
        return 1;
}
Those functions won't even compile.
Reply


Messages In This Thread
Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 15.10.2013, 04:09
Respuesta: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Swedky - 15.10.2013, 04:13
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by shittt - 15.10.2013, 04:33
AW: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by BigETI - 15.10.2013, 11:05
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 16.10.2013, 01:33
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Juniiro3 - 16.10.2013, 02:07
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Rocky Racoon - 16.10.2013, 02:10
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by iZN - 16.10.2013, 03:23
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Emmet_ - 16.10.2013, 04:41
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Jardell - 16.10.2013, 22:09
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 17.10.2013, 04:44
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by TheChimpJr - 17.10.2013, 13:32
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 18.10.2013, 01:05

Forum Jump:


Users browsing this thread: 3 Guest(s)