Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. CMD:trafika( playerid, params[] ) {
  2.  
  3. if( IsPlayerInAnyVehicle( playerid ) ) return GRESKA( playerid, "Moras biti van vozila." );
  4.  
  5. for( new i = 1; i < MAX_BUSSINES; i++ ) {
  6. if( IsPlayerInRangeOfPoint( playerid, 10.0, BussinesInfo[ i ][ bEnterX ], BussinesInfo[ i ][ bEnterY ], BussinesInfo[ i ][ bEnterZ ] ) ) {
  7. if( BussinesInfo[ i ][ bType ] == VRSTA_TRAFIKA ) {
  8. SPD( playerid, dialog_KIOSK, DSTH, D_NASLOV, "Stvar\tCena\nDopuna\t$20\nDopuna\t$50\nDopuna\t$100\nDopuna\t$500\nSprite\t$15\nCokoladica\t$35\nPivo\t$85\nCoca Cola\t$52\nCigare\t$35\nUpaljac\t$15", D_ODABERI, D_ODUSTANI );
  9. Trafika[ playerid ] = i;
  10. }
  11. else return GRESKA( playerid, "Morate biti kod trafike.");
  12. }
  13. }
  14. return true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement