30.08.2012, 14:28
(
Последний раз редактировалось [COD5]DarKnight; 06.09.2012 в 03:35.
Причина: Locked
)
.......
// put this at the top of script
new OnDuty[MAX_PLAYERS];
//The cmd is using ZCMD.
CMD:aduty(playerid,params[])
{
// if the player isnt a rcon admin then this message will be sent to him.
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Invalid Command.");
if(OnDuty[playerid] == 0)
{
SetPlayerSkin(playerid,217);
SetPlayerHealth(playerid,100000);
SetPlayerColor(playerid, 0x01FCFFFF);
OnDuty[playerid] = 1;
}
else
{
SetPlayerSkin(playerid,23);
SetPlayerHealth(playerid,100);
SetPlayerColor(playerid 0xFFFFFFFF);
OnDuty[playerid] = 0;
}
return 1;
}
// put this at the top of script
new OnDuty[MAX_PLAYERS];
//The cmd is using ZCMD.
CMD:aduty(playerid,params[])
{
new skin = GetPlayerSkin(playerid);
// if the player isnt a rcon admin then this message will be sent to him.
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Invalid Command.");
if(OnDuty[playerid] == 0)
{
SetPlayerSkin(playerid,217);
SetPlayerHealth(playerid,100000);
SetPlayerColor(playerid, 0x01FCFFFF);
OnDuty[playerid] = 1;
}
else
{
SetPlayerSkin(playerid,skin);
SetPlayerHealth(playerid,100);
SetPlayerColor(playerid 0xFFFFFFFF);
OnDuty[playerid] = 0;
}
return 1;
}