28.03.2010, 01:11
Hey all , i need add client message to all , if man type /onduty and he On Duty ! sendclientmessagetoall %s is now on duty and if he Playing %s is now playing
Here the code.
Here the code.
pawn Код:
dcmd_onduty(playerid,params[])
{
#pragma unused params
if (AccInfo[playerid][Level] >= 2)
{
if(AccInfo[playerid][OnDuty] == 0)
{
AccInfo[playerid][OnDuty] = 1;
return SendClientMessage(playerid,green,"|- You are now in \"Duty Mode\" -|");
}
else
{
AccInfo[playerid][OnDuty] = 0;
return SendClientMessage(playerid,orange,"|- You are now in \"Playing Mode\"-|");
}
}
return ErrorMessages(playerid, 5);
}