How would i do this
#8

pawn Код:
CMD:adminduty(playerid, params[])
{
    if(PlayerData[playerid][AdminLevel] >= 1)
    {
        if(PlayerData[playerid][AdminDuty] == 0)
        {
            GetPlayerName(playerid, PlayerData[playerid][OrginalName], 24);
            SetPlayerName(playerid, PlayerData[playerid][AdminName]);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now on admin duty");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /adminduty to go on admin duty");
            format(str2, sizeof(str2),"Admin %s Is now online",PlayerData[playerid][AdminName]);
            SetPlayerColor(playerid, COLOR_NAVY);
            SendClientMessageToAll(COLOR_GREEN,str2);
PlayerData[playerid][AdminDuty] = 1;
        }
        else
        {
            SetPlayerName(playerid, PlayerData[playerid][OrginalName]);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now off admin duty");
            format(str2, sizeof(str2),"Admin %s Is now offline",PlayerData[playerid][AdminName]);
            SetPlayerColor(playerid, COLOR_NAVY);
            SendClientMessageToAll(COLOR_GREEN,str2);
PlayerData[playerid][AdminDuty] = 0;
        }
    }
    return 1;
}
Sorry my mistake. Now it should work.
Reply


Messages In This Thread
How would i do this - by Scripter12345 - 23.04.2012, 20:00
Re: How would i do this - by HazardGaming - 23.04.2012, 20:09
Re: How would i do this - by Scripter12345 - 23.04.2012, 20:16
Re: How would i do this - by HazardGaming - 23.04.2012, 20:18
Re: How would i do this - by Roel - 23.04.2012, 20:19
Re: How would i do this - by Scripter12345 - 23.04.2012, 20:48
Re: How would i do this - by Scripter12345 - 23.04.2012, 21:06
Re: How would i do this - by Roel - 23.04.2012, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)