Badge System
#1

How would one go about making a badge system?
It would be easier to add it on to their name(that displays above their head) than to attach a 3dtextlabel to them, right?

I can't get it to change my name... I know it's a stupid problem, probably made by a mistake, as I just put this together out of the blue, and didn't use any references... And yes... I'm a newb

pawn Код:
CMD:badge(playerid, params[]) {
    new
        string[128],
        string2[64];
       

    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) {
        format(string, sizeof(string), "* Officer %s takes out his badge and places it on his shirt.", szPlayerName);
        SendClientMessage(playerid, COLOR_PURPLE, string);
        format(string2, sizeof(string2), "Officer %s", szPlayerName);
        SetPlayerName(playerid, string2);
    }
    if(playerVariables[playerid][pAdminLevel] >= 1) {
        format(string, sizeof(string), "* Admin %s takes out his badge and places it on his shirt.", szPlayerName);
        SendClientMessage(playerid, COLOR_PURPLE, string);
        format(string2, sizeof(string2), "Admin %s", szPlayerName);
        SetPlayerName(playerid, string2);
    }

    return 1;
}
It doesn't throw any errors, just simply doesn't change the persons name...
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: 1 Guest(s)