15.08.2010, 10:54
(
Последний раз редактировалось Rickzor14; 15.08.2010 в 11:04.
)
Hello guys, Im wondering if someone could make me an /adminduty.
Here is an admin command how its like in my script, So maybe you could edit it or so, Could you also make like an announcement that will be send like this: ''Administrator [Name] Has gone on duty''
Thanks.
dcmd_mute(playerid, params[])
{
if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
else
{
new ID, reason[100];
if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [id] [reason]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
else
{
new string[256], name[60], name2[60];
GetPlayerName(playerid, name, 60);
GetPlayerName(ID, name2, 60);
format(string, 256, "Administrator %s[%d] has muted %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
SendClientMessageToAll(COLOR_YELLOW, string);
Muted[ID] = 1;
}
}
return 1;
}
Here is an admin command how its like in my script, So maybe you could edit it or so, Could you also make like an announcement that will be send like this: ''Administrator [Name] Has gone on duty''
Thanks.
dcmd_mute(playerid, params[])
{
if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
else
{
new ID, reason[100];
if(sscanf(params, "is", ID, reason)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [id] [reason]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
else
{
new string[256], name[60], name2[60];
GetPlayerName(playerid, name, 60);
GetPlayerName(ID, name2, 60);
format(string, 256, "Administrator %s[%d] has muted %s[%d]. (Reason: %s)", name, playerid, name2, ID, reason);
SendClientMessageToAll(COLOR_YELLOW, string);
Muted[ID] = 1;
}
}
return 1;
}