18.06.2012, 03:08
Alright so im trying to make a /showbadge for a faction. I am trying to make it so the line directly below shows the persons name who /showbadge [Then a Playerid].
Код:
SendClientMessageEx(giveplayerid, COLOR_GRAD2, "Agent %s is a duly sworn member of the FBI.", GetPlayerNameEx(playerid), playerid);
Код:
CMD:showbadge(playerid, params[]) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------"); SendClientMessageEx(giveplayerid, COLOR_GRAD2, "Agent %s is a duly sworn member of the FBI.", GetPlayerNameEx(playerid), playerid); SendClientMessageEx(giveplayerid, COLOR_WHITE, "Current Assignment: General Duties"); SendClientMessageEx(giveplayerid, COLOR_WHITE, "Under the Authority of the United States Government."); SendClientMessageEx(giveplayerid, COLOR_WHITE, "Official has the authority to arrest."); SendClientMessageEx(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------"); return 1; }