SHARE
TWEET

Untitled

a guest May 18th, 2018 411 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Pinfo
  2.  
  3. pRankName[128],
  4.  
  5.  
  6. YCMD:rankname(playerid, params[], help)
  7. {
  8.     #pragma unused help
  9.     if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""CRVENA"[GRESKA] "SIVA"Morate se ulogovati!");
  10.     new text[128];
  11.     new id;
  12.     new string[122];
  13.     if(PlayerInfo[playerid][pLider] == 0) return SCM(playerid, -1, ""CRVENA"ERROR: "SIVA"Samo Lideri!!");
  14.     if(sscanf(params, "us[128]", id, text)) return SCM(playerid,-1, ""CRVENA"Pomoc | "SIVA"/rankname [ID/Ime] [text]");
  15.     if(strlen(text) < 3 || strlen(text) > 15) return SCM(playerid,-1, ""CRVENA"[GRESKA] "SIVA"Ime vaseg ranka ne moze biti manje od 3 ~ Vise od 15!");
  16.     if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""CRVENA"ERROR: "SIVA"Igrac je offline!");
  17.     if(PlayerInfo[playerid][pLider] != PlayerInfo[id][pClan]) return SCM(playerid, -1, ""CRVENA"ERROR: "SIVA"Igrac je clan neke druge organizacije!");
  18.     PlayerInfo[id][pRankName] = text;
  19.     strmid(PlayerInfo[id][pRankName], text, 0, strlen(text), 255);
  20.     format(string, sizeof(string), ""ZUTA"INFO | "SIVA"Lider %s vam je postavio ime ranka %s!", GetName(playerid),text);
  21.     SendClientMessage(id, -1, string);
  22.     format(string, sizeof(string), ""ZUTA"INFO | "SIVA"Dao si %s rankname %s.", GetName(id),text);
  23.     SCM(playerid, -1, string);
  24.     SavePlayer(id);
  25.     return true;
  26. }
  27.  
  28. ////ako ocete da vam pise ime ranka kod clanovi
  29. YCMD:clanovi(playerid, params[],help)
  30. {
  31.     #pragma unused help
  32.     if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[AG] "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  33.     new org,string[512];
  34.     if(PlayerInfo[playerid][pLider] != 0) org = PlayerInfo[playerid][pLider];
  35.     else if (PlayerInfo[playerid][pClan] != 0) org = PlayerInfo[playerid][pClan];
  36.     else return SCM(playerid,-1, "[AG] "CRVENA"Ovu komandu mogu koristiti samo clanovi/lideri organizacija!");
  37.     SCM(playerid, 0x808000AA, ""CRVENA"|----------------- Clanovi Online -----------------|");
  38.     foreach(Player, i)
  39.     {
  40.         format(string, sizeof(string), "");
  41.         if(PlayerInfo[i][pLider] == org) format(string, sizeof(string), ""CRVENA"- Lider | "BELA"%s "CRVENA"| RankName "BELA"%s ",GetName(i), PlayerInfo[i][pRankName]);
  42.         else if (PlayerInfo[i][pClan] == org) format(string, sizeof(string), ""CRVENA"- Clan | "BELA"%s "CRVENA"| Rank "BELA"%d "CRVENA"| RankName "BELA"%s",GetName(i), PlayerInfo[i][pRank], PlayerInfo[i][pRankName]);
  43.         if (strlen(string) > 1) SCM(playerid, -1, string);
  44.     }
  45.     return 1;
  46. }
  47.  
  48.  
  49. ///////////////////f chat
  50.  /////////////////////////////TVF CHAT/////////////
  51.     else if(PlayerInfo[playerid][pLider] == 2)
  52.     {
  53.         new string[256];
  54.         format(string, sizeof(string), ""CRVENA"TVF | %s (%s): "SIVA"%s", GetName(playerid),PlayerInfo[playerid][pRankName], params[0] );
  55.         return ChatVF(-1,string);
  56.     }
  57.     else if(PlayerInfo[playerid][pClan] == 2)
  58.     {
  59.         new string[256];
  60.         format(string, sizeof(string), ""CRVENA"TVF | %s (%s): "BELA"%s", GetName(playerid),PlayerInfo[playerid][pRankName], params[0] );
  61.         return ChatVF(-1,string);
  62.     }
  63.  
  64.  
  65. /////////////////kod LoadUser
  66. INI_String("RankName",PlayerInfo[playerid][pRankName], 128);
  67. ////////////////kod SavePlayer
  68. INI_WriteString(File,"RankName",PlayerInfo[playerid][pRankName]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top