Advertisement
Guest User

Untitled

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