Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:zatvorirpe(playerid, params[],help)
- {
- #pragma unused help
- if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[VG:RP] | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
- if(PlayerInfo[playerid][pRPucitelj] > 0)
- {
- new ID, Vreme, Razlog[64];
- if(sscanf(params, "uis[64]", ID, Vreme, Razlog)) return SCM(playerid, -1, ""SPLAVA"[VG:RP] Pomoc | "BELA"/zatvorirpe [ID/Nick] [Vreme (minuta)] [Razlog]");
- if(!IsPlayerConnected(ID)) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je offline!");
- 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; }
- if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[ID][pAdmin] >= 6) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Ne mozete staviti u zatvor Vlasnika!");
- ResetPlayerWeapons(ID);
- SetPlayerPos(ID, 107.2300,1920.6311,18.5208);
- SetPlayerWorldBounds(ID, 337.5694,101.5826,1940.9759,1798.7453);
- SetPlayerInterior(ID, 0);
- TogglePlayerControllable(ID, 0);
- freeze[ID] = SetTimerEx("Freeze",5000, false, "i", ID);
- PlayerInfo[ID][pZatvor] = 3;
- PlayerInfo[ID][pZatvorenVreme] += Vreme*60;
- new string [128];
- new stringic[256];
- format(string, sizeof(string), ""ORANGE"[VG:RP] Zatvorili ste %s u zatvor na %d minuta!.", GetName(ID),Vreme);
- SCM(playerid, -1, string);
- 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);
- SCM(ID, -1, string);
- format(string, sizeof(string), ""ORANGE"[RAZLOG] Vi ste zatvoreni zbog %s. Pravo na zalbu imate samo uz DOKAZE!!!", Razlog);
- SCM(ID, -1, string);
- format(string, sizeof(string), ""ORANGE"[AREA 51] VG RPE Team je zatvorio igraca %s | Minuti: %d | Razlog: %s",GetName(ID),Vreme,Razlog);
- AdminGameMaster(-1, string);
- format(stringic, sizeof(stringic), ""ORANGE"RPE Clan %s je zatvorio igraca", GetName(playerid));
- AdminGameMaster(-1, stringic);
- SavePlayer(ID);
- }
- else return SCM(playerid, -1, ""ORANGE"[VG:RP] "SIVA"Samo VG RPE Team!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement