Get player name > temp store
#9

My bad for not reading it completely, here you go and It works, I have tested it.
pawn Код:
if(strcmp(cmd, "/aduty", true) == 0) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "[System] You are not authorized to use that command !");
    new name[MAX_PLAYER_NAME];
    if(AdminDutyStatus[playerid] == 0) {
        SendClientMessage(playerid,COLOR_YELLOW,"You are now on Admin Duty!");
        AdminDutyStatus[playerid] = 1;
        GetPlayerName(playerid, name, sizeof(name));
        SetPlayerName(playerid, GetPlayerFirstName(playerid));
        return 1;
    } else if(AdminDutyStatus[playerid] == 1) {
        SendClientMessage(playerid,COLOR_YELLOW,"You have gone off Admin Duty!");
        AdminDutyStatus[playerid] = 0;
        SetPlayerName(playerid, name);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Get player name > temp store - by Jack_Leslie - 12.07.2011, 07:42
Re: Get player name > temp store - by Toreno - 12.07.2011, 07:48
Re: Get player name > temp store - by Jack_Leslie - 12.07.2011, 07:49
Re: Get player name > temp store - by PrawkC - 12.07.2011, 07:50
Re: Get player name > temp store - by Toreno - 12.07.2011, 07:52
Re: Get player name > temp store - by Jack_Leslie - 12.07.2011, 07:53
Re: Get player name > temp store - by PrawkC - 12.07.2011, 07:54
Re: Get player name > temp store - by Jack_Leslie - 12.07.2011, 07:56
Re: Get player name > temp store - by Toreno - 12.07.2011, 08:19
Re: Get player name > temp store - by Jack_Leslie - 12.07.2011, 09:03

Forum Jump:


Users browsing this thread: 2 Guest(s)