[HelpPls] iam need make command for admin name /duty
#2

In top
pawn Код:
new adminduty[MAX_PLAYERS];
new string[128];
command

pawn Код:
CMD:adminduty(playerid, params[])
{
if(adminduty[playerid] == 0)
{
adminduty[playerid] = 1;
SetPlayerColor(playerid, YOU COLOR);
new name[MAX_PLAYERS_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now on adminduty!",name);
SendClientMessageToAll(-1, string);
}
else
{
adminduty[playerid] = 0;
SetPlayerColor(playerid, YOU COLOR);
new name[MAX_PLAYERS_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now off adminduty!",name);
SendClientMessageToAll(-1, string);
}
return 1;
}
Reply


Messages In This Thread
[HelpPls] iam need make command for admin name /duty - by alking282 - 13.04.2012, 20:57
Re: [HelpPls] iam need make command for admin name /duty - by Fires - 13.04.2012, 21:14
Re: [HelpPls] iam need make command for admin name /duty - by alking282 - 13.04.2012, 21:49
Re: [HelpPls] iam need make command for admin name /duty - by WarriorEd22 - 13.04.2012, 22:05
Re: [HelpPls] iam need make command for admin name /duty - by alking282 - 13.04.2012, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)