Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted (edited)

multumesc merge! 

as-i mai dori un system de event /joinevent

Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted
3 hours ago, Geani said:

multumesc merge! 

as-i mai dori un system de event /joinevent

Fa-ti-l . Nu cere . Topic Closed !

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.