Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:trafika( playerid, params[] ) {
- if( IsPlayerInAnyVehicle( playerid ) ) return GRESKA( playerid, "Moras biti van vozila." );
- for( new i = 1; i < MAX_BUSSINES; i++ ) {
- if( IsPlayerInRangeOfPoint( playerid, 10.0, BussinesInfo[ i ][ bEnterX ], BussinesInfo[ i ][ bEnterY ], BussinesInfo[ i ][ bEnterZ ] ) ) {
- if( BussinesInfo[ i ][ bType ] == VRSTA_TRAFIKA ) {
- 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 );
- Trafika[ playerid ] = i;
- }
- else return GRESKA( playerid, "Morate biti kod trafike.");
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement