Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Myrank
- dcmd_myrank(playerid, params[])
- {
- new string[254],rankstring[256];
- switch(Rank[playerid]) {
- case 0: rankstring = "Starter";
- case 1: rankstring = "Private";
- case 2: rankstring = "Corporal";
- case 3: rankstring = "Sergeant";
- case 4: rankstring = "Lieutenant";
- case 5: rankstring = "Captain";
- case 6: rankstring = "Major";
- case 7: rankstring = "Colonol";
- case 8: rankstring = "Lieutenant General";
- case 9: rankstring = "Major General";
- case 10: rankstring = "General";
- case 11: rankstring = "General of Army";
- }
- format(string, sizeof(string), "{FF0000}Rank:{FFFFFF} %s || {FF0000}Kills:{FFFFFF} %d || {FF0000}Deaths:{FFFFFF} %d", rankstring,Kills[playerid],Deaths[playerid]);
- SendClientMessage(playerid, COLOR_RED, string);
- IRC_GroupSay(gGroupID, IRC_ADMINCHANNEL, "someone typed /ranks");
- #pragma unused params
- return 1;
- }
Add Comment
Please, Sign In to add comment