Command problem
#4

Quote:
Originally Posted by lucamsx
Посмотреть сообщение
Код:
CMD:aod(playerid, params[]) 
{ 
    if(pInfo[playerid][Admin] < 1) return NotAdminMSG(playerid); 
    if(pInfo[playerid][AOD] == 0) 
    { 
        new pworld; 
        pworld = GetPlayerVirtualWorld(playerid); 
        pInfo[playerid][AODLabel] = Create3DTextLabel("Admin On Duty!", COLOR_ADMIN, 0.000, 0.000, 0.000, 15.0, pworld, 0); 
        Attach3DTextLabelToPlayer(pInfo[playerid][AODLabel], playerid, 0.0, 0.0, 0.7); 
        SetPHealth(playerid, 99999); 
        pInfo[playerid][AOD] = 1; 
        SCM(playerid, COLOR_WHITE, ""WORD_ADMIN"You are on duty now!"); 
        SetPlayerColor(playerid, COLOR_ADMIN); 
    } 
    else if(pInfo[playerid][AOD] == 1) 
    { 
        SetPHealth(playerid, 100); 
        pInfo[playerid][AOD] = 0; 
        SCM(playerid, COLOR_WHITE, ""WORD_ADMIN"You are off duty now!"); 
        Delete3DTextLabel(pInfo[playerid][AODLabel]); 
        CheckPlayerColor(playerid); 
    } 
    return 1; 
}
Oh thanks.
SilverStand, your script (without testing) is good, but lucamsx's one is more simple.
Thanks both!
Reply


Messages In This Thread
Command problem - by E7mad - 25.12.2015, 11:55
Re: Command problem - by lucamsx - 25.12.2015, 12:00
Re: Command problem - by SilverStand - 25.12.2015, 12:03
Re: Command problem - by E7mad - 25.12.2015, 12:14
Re: Command problem - by saffierr - 25.12.2015, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)