25.12.2011, 12:52
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
It doesn't throw any errors, just simply doesn't change the persons name...
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;
}