Advertisement
Guest User

/zatvorirpe By Gromoslav

a guest
Jul 8th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. YCMD:zatvorirpe(playerid, params[],help)
  2. {
  3. #pragma unused help
  4. if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[VG:RP] | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  5. if(PlayerInfo[playerid][pRPucitelj] > 0)
  6. {
  7. new ID, Vreme, Razlog[64];
  8. if(sscanf(params, "uis[64]", ID, Vreme, Razlog)) return SCM(playerid, -1, ""SPLAVA"[VG:RP] Pomoc | "BELA"/zatvorirpe [ID/Nick] [Vreme (minuta)] [Razlog]");
  9. if(!IsPlayerConnected(ID)) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je offline!");
  10. if(Vreme < 1 || Vreme > 20) { SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA" Vreme ne moze biti manje od 1 a ni vise od 20 minuta!"); return 1; }
  11. if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[ID][pAdmin] >= 6) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Ne mozete staviti u zatvor Vlasnika!");
  12. ResetPlayerWeapons(ID);
  13. SetPlayerPos(ID, 107.2300,1920.6311,18.5208);
  14. SetPlayerWorldBounds(ID, 337.5694,101.5826,1940.9759,1798.7453);
  15. SetPlayerInterior(ID, 0);
  16. TogglePlayerControllable(ID, 0);
  17. freeze[ID] = SetTimerEx("Freeze",5000, false, "i", ID);
  18. PlayerInfo[ID][pZatvor] = 3;
  19. PlayerInfo[ID][pZatvorenVreme] += Vreme*60;
  20. new string [128];
  21. new stringic[256];
  22. format(string, sizeof(string), ""ORANGE"[VG:RP] Zatvorili ste %s u zatvor na %d minuta!.", GetName(ID),Vreme);
  23. SCM(playerid, -1, string);
  24. format(string, sizeof(string), ""ORANGE"[VG:RP] Clan RPE Teama %s Vas je zatvorio na %d minuta. Ukoliko mislite da ste greskom zatvoreni, zalite se na forumu", GetName(playerid), Vreme);
  25. SCM(ID, -1, string);
  26. format(string, sizeof(string), ""ORANGE"[RAZLOG] Vi ste zatvoreni zbog %s. Pravo na zalbu imate samo uz DOKAZE!!!", Razlog);
  27. SCM(ID, -1, string);
  28. format(string, sizeof(string), ""ORANGE"[AREA 51] VG RPE Team je zatvorio igraca %s | Minuti: %d | Razlog: %s",GetName(ID),Vreme,Razlog);
  29. AdminGameMaster(-1, string);
  30. format(stringic, sizeof(stringic), ""ORANGE"RPE Clan %s je zatvorio igraca", GetName(playerid));
  31. AdminGameMaster(-1, stringic);
  32. SavePlayer(ID);
  33. }
  34. else return SCM(playerid, -1, ""ORANGE"[VG:RP] "SIVA"Samo VG RPE Team!");
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement