Badge System
#2

pawn Код:
CMD:badge(playerid, params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) {
        format(string, sizeof(string), "* Officer %s takes out his badge and places it on his shirt.", sendername);
        SendClientMessage(playerid, COLOR_PURPLE, string);
        format(string2, sizeof(string2), "[Officer]%s", sendername);
        SetPlayerName(playerid, string2);
    }
    else if(playerVariables[playerid][pAdminLevel] >= 1) {
        format(string, sizeof(string), "* Admin %s takes out his badge and places it on his shirt.", sendername);
        SendClientMessage(playerid, COLOR_PURPLE, string);
        format(string2, sizeof(string2), "[Admin]%s", sendername);
        SetPlayerName(playerid, string2);
    }
    else { SendClientMessage(playerid,COLOR_RED,"You can't use this command!"); }
    return 1;
}
NOTE: UNTESTED
Try to use this command now! Replace it with your current one!
Reply


Messages In This Thread
Badge System - by Mini` - 25.12.2011, 12:52
Re: Badge System - by Ballu Miaa - 25.12.2011, 13:02
Re: Badge System - by Gh05t_ - 25.12.2011, 13:03
Re: Badge System - by rinori - 25.12.2011, 13:31
Re: Badge System - by Mini` - 25.12.2011, 13:52

Forum Jump:


Users browsing this thread: 2 Guest(s)