Guest User

Untitled

a guest
Feb 11th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. CMD:kupitelefon( playerid, params[] )
  2. {
  3. if( !IsPlayerInRangeOfPoint( playerid, 3.0, -1110.0254,2369.4956,31.3902 ) ) return GRESKA( playerid, "Morate biti u elektronik shopu da bi koristili ovu komandu.");
  4. SPD( playerid, dialog_BUY_MOBILEPHONE, DSTH, D_NASLOV, "Marka Mobilnog Telefona\tCena\nSamsung Galaxy S7 edge\t$5.999\nApple iPhone 7 Plus\t$8.339\nLG G4, H815\t$3.599\nSONY XPERIA XA\t$2.399\nHTC ONE 10\t$5.899\nHuawei P10\t$4.499\nLenovo Vibe P1\t$2.499", D_ODABERI, D_ODUSTANI );
  5. return true;
  6. }
  7. /////////////////////// PROBLEM JE STO nije firma elektronik nego je vec drugacije napravljeno samo ulaz u int a isto je ko int samo
  8. CMD:kupikarticu( playerid, params[] ) {
  9. for( new i = 1; i < MAX_BUSSINES; i++ ) {
  10. if( IsPlayerInRangeOfPoint( playerid, 3.0, -1110.0254,2369.4956,31.3902 ) ) {
  11. if( BussinesInfo[ i ][ bType ] == VRSTA_ELEKTRONIK ) {
  12. ShowPlayerDialog( playerid, dialog_KUPIKARTICU, DSL, D_NASLOV, "MTS\nVIP\nTelenor", D_ODABERI, D_ODUSTANI );
  13. }
  14. else return GRESKA( playerid, "Morate biti u elektronik shopu da bi koristili ovu komandu.");
  15. }
  16. }
  17. return true;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment