Jump to content
  • 0

Problema /aod


InceMan

Question

Problema intalnita (descriere):cand dau /aod off duty nu imi scade viata la 100hp
Ero(area / rile) / warning-(ul / urile): nu am erori
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:aod(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
            switch(playerVariables[playerid][phod])
            {
                case 0:
                {
                    playerVariables[playerid][phod] = 1;
                    format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now on administrative duty.", playerVariables[playerid][pNormalName], playerid);
                
                       SetPlayerHealth(playerid,999999999999999);
                       SetPlayerArmour(playerid,999999999999999);
                       SetPlayerToTeamColor(playerid);
                }
                case 1:
                {
                    playerVariables[playerid][phod] = 0;
                    format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now off administrative duty.", playerVariables[playerid][pNormalName], playerid);
                   
                }

            }
            submitToHelpersAndAdmins(szMessage, COLOR_HOTORANGE);

    }
    return 1;
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da dar nu merge cand dau /aod off duty nu imi scade viata la 100hp

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Serios? 

 

CMD:aod(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
            switch(playerVariables[playerid][phod])
            {
                case 0:
                {
                    playerVariables[playerid][phod] = 1;
                    format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now on administrative duty.", playerVariables[playerid][pNormalName], playerid);
                
                       SetPlayerHealth(playerid,999999999999999);
                       SetPlayerArmour(playerid,999999999999999);
                       SetPlayerToTeamColor(playerid);
                }
                case 1:
                {
                    playerVariables[playerid][phod] = 0;
					SetPlayerHealth(playerid,99);
                    SetPlayerArmour(playerid,0);
                    format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now off administrative duty.", playerVariables[playerid][pNormalName], playerid);
                   
                }

            }
            submitToHelpersAndAdmins(szMessage, COLOR_HOTORANGE);

    }
    return 1;
}

Incearca acum...

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.