Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new kladkapijač
- kladkapija = CreateDynamicObject(19302, 2145.18530, 1606.67981, 993.80762, 0.00000, 0.00000, 180.00000);
- new KladaraRobbedRecently;
- if(strcmp(cmd, "/dekodiraj", true) == 0)
- {
- new success = random (2);
- if(PlayerInfo[playerid][pLeader] == 0)
- {
- Greska(playerid, "Niste lider bande.");
- return 1;
- }
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 )
- {
- Greska(playerid,"Vi ste pripadnik drzavne organizacije.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 2, 2145.2756, 1605.9905, 994.0596))
- {
- if(GetPlayerWeapon(playerid) >= 40 && GetPlayerWeapon(playerid) <= 42)
- {
- TogglePlayerControllable(playerid, 0);
- PlayerInfo[giveplayerid][pFrozen] = 1
- SetTimerEx("Unfreezeply",180000,false,"i",playerid);
- Obavest(playerid, "Ostanite tu 180 sec dok se odmrzne sifra");
- DestroyObject(kladkapija)
- if(PlayerInfo[playerid][pDuty] == 0)
- {
- if(success == 1)
- {
- KladaraRobbedRecently = 1;
- RobbingTime[playerid] = 180;
- RobKladTimer = SetTimerEx("RobKladionica",1000,true,"i",playerid);
- format(string,sizeof(string),"ALARM | {FFFFFF}U tijeku je obijanje vrata sefa: {00D900}-> | Kladionice |");
- SendRadioMessage(1, COLOR_ASKQ, string);
- SendRadioMessage(2, COLOR_ASKQ, string);
- PlayerInfo[playerid][pRobTime] = 180;
- SetTimer("UnsetKladionicaRob",1200000,false);
- PlayerInfo[playerid][pWanted] += 3;
- SetPlayerCriminal(playerid,255, "Pljacka kladionice");
- ResetPlayerWeapons(playerid)
- }
- else
- {
- SendClientMessage(playerid, COLOR_ASKQ, "SRB:RP | {FFFFFF}Ne mozes pljackati jer si {0934FF}policajac {FFFFFF}na duznosti.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ASKQ, "SRB:RP | {FFFFFF}Nisi na mestu za dekodiranje vrata.");
- SendClientMessage(playerid, COLOR_ASKQ, "SRB:RP | {FFFFFF}Morate imati sprej za ovu akciju.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_ASKQ, "SRB:RP | {FFFFFF}Morate imati sprej za ovu akciju.");
- return 1;
- }
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement