Advertisement
Guest User

Untitled

a guest
Jul 4th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.30 KB | None | 0 0
  1. CMD:postavidinamit( playerid, params[] ) {
  2.  
  3.     if( !Dinamit[ playerid ] ) return GRESKA( playerid, "Nemate dinamit u rukama." );
  4.     if( VrataBankeSrusena ) return GRESKA( playerid, "Vrata su vec srusena." );
  5.     if( !IsPlayerInRangeOfPoint( playerid, 5, 2957.6897, -1038.3453, 11.8258 ) ) return GRESKA( playerid, "Morate biti pored vrata banke." );
  6.     if( IsPlayerAttachedObjectSlotUsed( playerid, OBJECT_SLOT_RHAND ) ) RemovePlayerAttachedObject( playerid, OBJECT_SLOT_RHAND );
  7.     if( BankaOpljackana ) return GRESKA( playerid, "Banka je vec opljackana." );
  8.  
  9.     new hour, minute, second;
  10.     gettimeEx( hour, minute, second );
  11.     FixHour( hour );
  12.     hour = shifthour;
  13.  
  14.     if( ( hour >= 09 ) && ( hour <= 23 ) ) {
  15.         DinamitObjekt = CreateObject(1654, 2957.6619, -1037.6775, 12.8258,   0.00000, 0.00000, -180.00000 );
  16.         SekundDinamita = 10;
  17.         SetTimer( "PukoDinamit", 1000, false );
  18.         Dinamit[ playerid ] = false;
  19.         new string[ 128 ];
  20.         format( string, sizeof( string ), ""col_red"Eksplozija dinamita\nPomerite se od dinamita\n"col_white"%d", SekundDinamita );
  21.         Dinamit3D = Create3DTextLabel( string, BELA,2957.6619, -1037.6775, 12.8258, 30.0, -1, 0);
  22.  
  23.         PostaviWanted( playerid, "Pokusaj obijanja sefa", "Nepoznati", 3 );
  24.     } else return GRESKA( playerid, "Mozete pljackati samo od 9h do 23h." );
  25.     return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement