Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:gettrans( playerid, params [ ] )
- {
- if( PlayerData[ playerid ][ pJob ] != 12 ) return SendClientMessage( playerid, -1, "{FF0000}Tu nu esti transportator." );
- if( !IsPlayerInRangeOfPoint( playerid, 1.0, 2350.6477, -648.4733, 128.0547 ) ) return SendClientMessage( playerid, -1, "{FF0000}Nu esti in depozit pentru a lua marfa." );
- if( CP[ playerid ] != 0 ) return SendClientMessage( playerid, -1, "{FF0000}Tu nu poti folosi aceasta comanda acum." );
- if( CP[ playerid ] == 2626 ) return SendClientMessage( playerid, -1, "{FF0000}Trebuie sa duci munca la bun sfrsit." );
- ApplyAnimation( playerid, "CARRY", "putdwn", 4.0, 0, 1, 1, 1, 1, 1 );
- SetTimerEx("StopHiving", 3000, false, "i", playerid);
- new Float: Pos[ 3 ], randomCP = random( 3 );
- switch( randomCP )
- {
- case 0: Pos[ 0 ] = 1828.5411, Pos[ 1 ] = -1536.1710, Pos[ 2 ] = 13.3573;
- case 1: Pos[ 0 ] = 1315.5099, Pos[ 1 ] = -913.7881, Pos[ 2 ] = 37.8616;
- case 2: Pos[ 0 ] = 1201.3678, Pos[ 1 ] = -922.7086, Pos[ 2 ] = 42.8435;
- }
- SetPlayerCheckpoint( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ], 4.0 );
- CP[ playerid ] = 2626;
- SendClientMessage( playerid, -1, "Ia una dintre masinile de afara si transporta marfa." );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement