21.12.2010, 17:44
when i do mute it appear
Server: Unknown command +
SendFMessageToAll(red,"MUTED: has been muted [reason: %s]",pName,reason); (it dosnt appear the name)+
it dosnt mute why?
Server: Unknown command +
SendFMessageToAll(red,"MUTED: has been muted [reason: %s]",pName,reason); (it dosnt appear the name)+
it dosnt mute why?
pawn Код:
dcmd_mute(playerid,params[])
{
new id,reason,pName[MAX_PLAYER_NAME],file[128];
if(PInfo[playerid][Level] < 3) return 0;
if(sscanf(params,"us",id,reason)) return SCM(playerid,orange,"USAGE: /mute [id][reason]");
PInfo[id][Muted] = 1;
GetPlayerName(id,pName,sizeof(pName));
format(file,sizeof(file),"MyAdmin/Users/%s.ini",pName);
dini_IntSet(file,"Muted",1);
SendFMessageToAll(red,"MUTED:%s has been muted [reason: %s]",pName,reason);
return 1;
}