Jump to content
  • 0

Ajutor [sL0w^]


sL0w^

Question

2 answers to this question

Recommended Posts

Uite comanda [pawn]    if(strcmp(cmd, "/aod", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(AdminDuty[playerid] == 1)

    {

                new year, month, day;

getdate(year, month, day);

        new hour,minuite,sec;

            gettime(hour,minuite,sec);

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

    format(string, sizeof(string), "[Admin Info] %s [iD:%d] is no longer on duty as an admin. (%02d-%02d-%d), (%02d:%02d:%02d)", sendername, playerid, day, month, year, hour, minuite, sec);

                SendClientMessageToAll(0xC0C0C0FF,string);

  AdminDuty[playerid] = 0;

SetPlayerHealth(playerid,100);

SetPlayerArmour(playerid,0);

SetPlayerToTeamColor(playerid);

    }

    else

    {

                new year, month, day;

        getdate(year, month, day);

        new hour,minuite,sec;

            gettime(hour,minuite,sec);

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

    format(string, sizeof(string), "[Admin Info] %s [iD:%d] is now on duty as an admin.Please /w him if you need help. (%02d-%02d-%d), (%02d:%02d:%02d)", sendername, playerid, day, month, year, hour, minuite, sec);

SendClientMessageToAll(0x8080FFFF,string);

AdminDuty[playerid] = 1;

SetPlayerHealth(playerid,99999);

SetPlayerArmour(playerid,99999);

SetPlayerColor(playerid,0x8080FFFF);

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

        {

    if(IsPlayerConnected(i))

    {

    SetPlayerMarkerForPlayer( i,playerid,0x8080FFFF );

    }

}

    }

}

else

{

SendClientMessage(playerid, COLOR_WHITE1, " Your not an admin !");

}

return 1;

}[/pawn]

P.S Asta este problema GF

75392194.jpg
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.