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