Help me here plz :)
#1

Hi, i have /aduty command, only admins can use it and in my code something don't work is the color of admin
when admin type /aduty it doesn't set his color to pink as in my code, please help please i give +rep to who help me
pawn Код:
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;
}
Help plz
Reply


Messages In This Thread
Help me here plz :) - by FakkChass - 18.11.2013, 18:13
Re: Help me here plz :) - by FakkChass - 18.11.2013, 18:25
Re: Help me here plz :) - by ReD_HunTeR - 18.11.2013, 18:28
Re: Help me here plz :) - by Inn0cent - 18.11.2013, 18:31
Re: Help me here plz :) - by Tomix - 18.11.2013, 18:36
Re: Help me here plz :) - by Inn0cent - 18.11.2013, 18:42
Re: Help me here plz :) - by Tomix - 18.11.2013, 18:45
Re: Help me here plz :) - by FakkChass - 18.11.2013, 18:46
Re: Help me here plz :) - by ***Niko*** - 18.11.2013, 18:46
Re: Help me here plz :) - by Inn0cent - 18.11.2013, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)