DjoLe11

Untitled

May 28th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. if( PljackaNovac[ playerid ] > 0 ) {
  2.  
  3. new Float:Pos[ 3 ];
  4. GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
  5.  
  6. if( IsValidDynamicPickup( ServerInfo[ TorbaPickup ] ) ) {
  7. DestroyDynamicPickup( ServerInfo[ TorbaPickup ] );
  8. ServerInfo[ TorbaPickup ] = -1;
  9. }
  10.  
  11. ServerInfo[ TorbaPickup ] = CreateDynamicPickup( 1550, 1, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ], GetPlayerVirtualWorld( playerid ), GetPlayerInterior( playerid ) );
  12. ServerInfo[ TorbaVreme ] = 9;
  13. ServerInfo[ TorbaIgracDropo ] = playerid;
  14.  
  15. ServerInfo[ TorbaDropped ] = true;
  16.  
  17. if( IsPlayerAttachedObjectSlotUsed( playerid, OBJECT_SLOT_BADGE ) ) RemovePlayerAttachedObject( playerid, OBJECT_SLOT_BADGE );
  18.  
  19. ServerInfo[ TorbaOrgID ] = PlayerInfo[ playerid ][ xClan ];
  20. ServerInfo[ TorbaNovac ] = PljackaNovac[ playerid ];
  21.  
  22. ServerInfo[ TorbaTimer ] = SetTimer( "DestroyTorba", 180000, false ); // 3 min
  23.  
  24. PljackaVreme[ playerid ] = 0;
  25. PljackaNovac[ playerid ] = 0;
  26.  
  27. format( globalstring, sizeof( globalstring ), "[PLJACKA BANKE] %s je ispustio torbu, Lokacija: %s.", ImeIgraca( playerid ), GetPlayerLocation( playerid ) );
  28. OrgPoruka( PlayerInfo[ playerid ][ xClan ], 0x95b4a2FF, globalstring );
  29. OrgPoruka( PlayerInfo[ playerid ][ xClan ], 0x95b4a2FF, "[PLJACKA BANKE] Ukoliko ne pokupite torbu u roku od 3 minuta, nestace sa servera." );
  30.  
  31. foreach(new i : Player) {
  32. if( GetFactionType( i ) == ORG_TIP_PD ) {
  33.  
  34. format( globalstring,sizeof( globalstring ), "HQ: Osumniceni %s je ispustio torbu, Lokacija: %s, over.", ImeIgraca( playerid ), GetPlayerLocation( playerid ) );
  35. SCM( i, COLOR_LSPD, globalstring );
  36. SCM( i, SVETLOCRVENA, "Ukoliko policajac pokupi torbu, pljacka je sprecena, ukoliko niko ne pokupi 3min torba nestaje." );
  37. }
  38. }
  39.  
  40. if( CheckpointStatus[ playerid ] == 11 ) {
  41. DjoLe_DisablePlayerCheckpoint( playerid );
  42. CheckpointStatus[ playerid ] = 0;
  43. }
  44. }
  45.  
  46. if( PljackaVreme[ playerid ] > 0 ) KillTimer( PljackanjeBankeTimer[ playerid ] ), PljackaUToku = false, PljackaVreme[ playerid ] = 0;
Advertisement
Add Comment
Please, Sign In to add comment