Jump to content

Un sistem de god mode


djfoxy

Recommended Posts

Am facut un script de GOD mode nu am putut sa il uploadez deoarece am netu varza asa ca il pun aici.

[pawn] //GOD MODE BY DJFOXY

if(!strcmp(cmdtext, "/god", true))

{

if(IsPlayerConnected(playerid))

{

    if(gPlayerLogged[playerid] == 0)

    {

        SendClientMessage(playerid, COLOR_GREY, "Acum esti la datorie");

return 1;

    }

    if(PlayerInfo[playerid][pAdmin] > 0)

    {

        if(aod[playerid] == 0)

        {

            new text_info[64];

            text_info = "GOD MODE ON";

            DutyLabel[playerid] = Create3DTextLabel(text_info,0xAAAAFFFF,0,0,0.45, 50, -1, 1);

Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);

                    SendClientMessageToAll(0x005BF4FF,"********************GOD********************* ");

    format(string, sizeof(string)," Adminul %s este acum pe GOD MODE", NumeEx(playerid));

SendClientMessageToAll(0x9AE757FF, string);

aod[playerid] = 1;

SetPlayerHealth(playerid, 100);

SetPlayerArmour(playerid, 100);

                SetPlayerAttachedObject(playerid, 4, 1276, 1, 0.026707, 0.049716, 0.044027, 0.000000, 166.186828, 295.838226, -0.335559, 1.000000, 0.018289);

SetPlayerColor(playerid, 0xEB000FFF);

{

    for(new i = 0; i < sizeof(CarInfo); i++)

{

SetVehicleParamsForPlayer(i,playerid,0,0);

}

for(new i = 0; i < MAX_PLAYERS; i++)

}

}

return 1;

        }

        else if(aod[playerid] == 1)

        {

            aod[playerid] = 0;

    SetPlayerArmour(playerid,0);

SetPlayerHealth(playerid,100);

GetPlayerSkin(playerid);

SetPlayerToTeamColor(playerid);

GetPlayerName(playerid, sendername, sizeof(sendername));

SendClientMessageToAll(0x005BF4FF," ");

    SetPlayerColor(playerid, TEAM_HIT_COLOR);

format(string, sizeof(string),"Adminul %s nu mai este pe modul GOD.", NumeEx(playerid));

SendClientMessageToAll(0xEA494FFF, string);

SetPlayerSpecialAction(playerid,0);

Delete3DTextLabel(DutyLabel[playerid]);

RemovePlayerAttachedObject(playerid,1);

RemovePlayerAttachedObject(playerid,4);

return 1;

        }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, " Aceasta comanda este doar pentru admini.");

        return 1;

    }

}

    return 1;

}[/pawn]

<a href="http://www.game-state.eu/89.33.242.179:7777/"><img src="http://www.game-state.eu/89.33.242.179:7777/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

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.