HELP SendClientMessage?? +Rep
#6

how to create here when is admin on duty message for all admin is now on duty and admin is now off duty

Quote:

CMD:aduty(playerid, params[])
{
if(pInfo[playerid][pLevel] >= 1)
{
new skin[MAX_PLAYERS];
if(OnDuty[playerid] == 0)
{
skin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, 217);
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
SetPlayerColor(playerid, 0x01FCFFFF);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid] == 1)
{
SetPlayerSkin(playerid, skin[playerid]);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid, 0xFFFFFFFF);
OnDuty[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, red, "You are not administrator.");
}
return true;
}

Reply


Messages In This Thread
HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:01
Re: HELP SendClientMessage?? +Rep - by Jefff - 28.01.2015, 20:03
Re: HELP SendClientMessage?? +Rep - by arlindi - 28.01.2015, 20:04
Re: HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:04
Re: HELP SendClientMessage?? +Rep - by AdamsP - 28.01.2015, 20:08
Re: HELP SendClientMessage?? +Rep - by Mijata - 28.01.2015, 20:12
Re: HELP SendClientMessage?? +Rep - by Sawalha - 28.01.2015, 20:18
Re: HELP SendClientMessage?? +Rep - by arlindi - 28.01.2015, 20:20

Forum Jump:


Users browsing this thread: 2 Guest(s)