16.10.2013, 04:41
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;
}
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;
}