Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. stock NickWys(playerid)
  2. {
  3.  
  4. new nick[128],nick2[128],nickname[MAX_PLAYER_NAME],nazwa[128],opis[128],sluzba[128];
  5. GetPlayerName(playerid, nick, sizeof(nick));
  6. format(nazwa, sizeof(nazwa), "{KOLOR_GLOBALNY}(( %d. %s ))",playerid,nick,PlayerInfo[playerid]);
  7. if(ToFrakcja(playerid,2))
  8. {
  9. format(nazwa, sizeof(nazwa), "{KOLOR_LSPD}(( %d. %s ))",playerid,nick,PlayerInfo[playerid]);
  10. format(opis, sizeof(opis), "{KOLOR_LSPD}(LSPD)");
  11. }
  12. format(sluzba, sizeof(sluzba), "");
  13. format(nick, sizeof(nick), "%s\n%s\n%s", nazwa, opis, sluzba);
  14. if(GetPVarInt(playerid, "aduty") == 1)
  15. {
  16. format(nick, sizeof(nick), "Administrator %s", nick);
  17. }
  18.  
  19. UnderscoreToSpace(nick);
  20. return nick;
  21. }
  22.  
  23. CMD:aduty(playerid, cmdtext[])
  24. {
  25. if(!ToAdminLevel(playerid,1)) return 0;
  26. if(GetPVarInt(playerid, "aduty") == 1)
  27. {
  28. SetPVarInt(playerid, "aduty", 1);
  29. RefreshNick(playerid);
  30. return 1;
  31. }
  32. else if(GetPVarInt(playerid, "aduty") == 0)
  33. {
  34. SetPVarInt(playerid, "aduty", 0);
  35. RefreshNick(playerid);
  36. return 1;
  37. }
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement