dcmd_aduty(playerid,params[])
{
#pragma unused params
if(AdminLevel[playerid] < 1) return SCM(playerid,COLOR_WHITE,"[ERROR] {FFFFFF}Yo! You're not admin.");
if(IsAod[playerid] == 0)
{
IsAod[playerid] = 1;
SetPlayerHealth(playerid, 999999999);
TextDrawShowForPlayer(playerid,aduty[playerid]);
SetPlayerColor(playerid,COLOR_PINK); //This doesn't work
SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now on duty.");
Attach3DTextLabelToPlayer(aDutyLabel[playerid],playerid,0.0, 0.0, 0.7);
}
else
{
IsAod[playerid] = 0;
SetPlayerHealth(playerid, 100);
TextDrawHideForPlayer(playerid,aduty[playerid]);
Delete3DTextLabel(aDutyLabel[playerid]);
SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now off duty.");
}
return 1;
}
dcmd_aduty(playerid,params[]) { #pragma unused params if(AdminLevel[playerid] < 1) return SCM(playerid,COLOR_WHITE,"[ERROR] {FFFFFF}Yo! You're not admin."); if(IsAod[playerid] == 0) { IsAod[playerid] = 1; SetPlayerHealth(playerid, 999999999); TextDrawShowForPlayer(playerid,aduty[playerid]); SetPlayerColor(playerid,0xFFC0CBAA); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now on duty."); Attach3DTextLabelToPlayer(aDutyLabel[playerid],playerid,0.0, 0.0, 0.7); } else { IsAod[playerid] = 0; SetPlayerHealth(playerid, 100); TextDrawHideForPlayer(playerid,aduty[playerid]); Delete3DTextLabel(aDutyLabel[playerid]); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now off duty."); } return 1; }
dcmd_aduty(playerid,params[]) { #pragma unused params if(AdminLevel[playerid] < 1) return SCM(playerid,COLOR_WHITE,"[ERROR] {FFFFFF}Yo! You're not admin."); if(IsAod[playerid] == 0) { IsAod[playerid] = 1; SetPlayerHealth(playerid, 999999999); TextDrawShowForPlayer(playerid,aduty[playerid]); SetPlayerColor(playerid, 0xFF00FFFF); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now on duty."); Attach3DTextLabelToPlayer(aDutyLabel[playerid],playerid,0.0, 0.0, 0.7); } else { IsAod[playerid] = 0; SetPlayerHealth(playerid, 100); TextDrawHideForPlayer(playerid,aduty[playerid]); Delete3DTextLabel(aDutyLabel[playerid]); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now off duty."); } return 1;
Код:
dcmd_aduty(playerid,params[]) { #pragma unused params if(AdminLevel[playerid] < 1) return SCM(playerid,COLOR_WHITE,"[ERROR] {FFFFFF}Yo! You're not admin."); if(IsAod[playerid] == 0) { IsAod[playerid] = 1; SetPlayerHealth(playerid, 999999999); TextDrawShowForPlayer(playerid,aduty[playerid]); SetPlayerColor(playerid, 0xFF00FFFF); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now on duty."); Attach3DTextLabelToPlayer(aDutyLabel[playerid],playerid,0.0, 0.0, 0.7); } else { IsAod[playerid] = 0; SetPlayerHealth(playerid, 100); TextDrawHideForPlayer(playerid,aduty[playerid]); Delete3DTextLabel(aDutyLabel[playerid]); SCM(playerid,COLOR_WHITE,"[ADMIN] {FFFFFF}You are now off duty."); } return 1; |