Advertisement
Guest User

Untitled

a guest
Feb 16th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. CMD:sluzba(playerid, cmdtext[])
  2. {
  3. if(!PlayerInfo[playerid][pFrakcja] && !GetPVarInt(playerid, "sluzba")) return GuiInfo(playerid,"Nie jesteś zatrudniony w żadnej frakcji.");
  4.  
  5. new nick[MAX_PLAYER_NAME], str[64];
  6. GetPlayerName(playerid, nick, MAX_PLAYER_NAME);
  7. if(GetPVarInt(playerid, "sluzba") == 1)
  8. {
  9. format(str, sizeof(str), "%s (%d)", NickCzat(playerid), playerid);
  10. SetPVarInt(playerid, "sluzba", 0);
  11. Update3DTextLabelText(NICK[playerid], KOLOR_PBIALY, NickWys(playerid));
  12. SetPlayerColor(playerid, 0xFFFFFF00);
  13.  
  14. GuiInfo(playerid, "Opuściłeś służbę frakcji.");
  15. }
  16. else if(GetPVarInt(playerid, "sluzba") == 0)
  17. {
  18. SetPVarInt(playerid, "sluzba", 1);
  19. if(PlayerInfo[playerid][pFrakcja] == 1)
  20. {
  21. format(str, sizeof(str), "%s (%d)\n[Urzednik]", NickCzat(playerid), playerid);
  22. Update3DTextLabelText(NICK[playerid], KOLOR_ZIELONY, NickWys(playerid));
  23. SetPlayerColor(playerid,KOLOR_ZIELONY);
  24. }
  25. GuiInfo(playerid, "Wszedłeś na służbę frakcji.");
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement