25.12.2011, 13:02
(
Последний раз редактировалось Ballu Miaa; 25.12.2011 в 13:51.
)
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;
}
Try to use this command now! Replace it with your current one!