Advertisement
Guest User

Smuggle

a guest
Aug 1st, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 4.33 KB | None | 0 0
  1. else if ( cmd == "smuggleweps" )
  2.     {
  3.     if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
  4.     else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
  5.     else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewlery!", player)
  6.     else
  7.     {
  8.     local Pos = player.Pos, checkpoly;
  9.     checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
  10.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
  11.     else
  12.     {
  13.     status[player.ID].wepsm = true;
  14.     MessagePlayer("[#00f00f]You've smuggled weapons, Now goto the ammunation shop in downtown to sell it!", player);
  15.     DecCash( player, 500 )
  16.     }
  17.     }
  18.     }
  19.     else if ( cmd == "smugglejewlery" )
  20.     {
  21.     if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
  22.     else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
  23.     else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewellery!", player)
  24.     else
  25.     {
  26.     local Pos = player.Pos, checkpoly;
  27.     checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
  28.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
  29.     else
  30.     {
  31.     status[player.ID].jewsm = true;
  32.     MessagePlayer("[#00f00f]You've smuggled Jewellery, Now goto the jewellery shop in downtown to sell it!", player);
  33.     DecCash( player, 500 )
  34.     }
  35.     }
  36.     }
  37.     else if ( cmd == "sellweps" )
  38.     {
  39.     if ( status[ player.ID ].wepsm == false ) MessagePlayer("[#ff0000]You don't have weapons, Goto the old broken house near boat yard to smuggle them.", player)
  40.     else
  41.     {
  42.     local Pos = player.Pos, checkpoly;
  43.     checkpoly = InPoly( Pos.x, Pos.y, -682.759, 1201.86,-682.76, 1208.14,-666.617, 1209.52,-666.617, 1202.46);
  44.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the ammunation shop near downtown to sell drugs.", player );
  45.     else
  46.     {
  47.     IncCash( player, 5000)
  48.     status[player.ID].wepsm = false;
  49.     MessagePlayer("You've sold your weapons!", player)
  50.     }
  51.     }
  52.     }
  53.     else if ( cmd == "selljewlery" )
  54.     {
  55.     if ( status[ player.ID ].jewsm == false ) MessagePlayer("[#ff0000]You don't have weapons, Goto the old broken house near boat yard to smuggle them.", player)
  56.     else
  57.     {
  58.     local Pos = player.Pos, checkpoly;
  59.     checkpoly = InPoly( Pos.x, Pos.y, -852.752, 859.352,-858.946, 859.428,-861.462, 840.812,-853.694, 840.525);
  60.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the jewellery shop near downtown to sell drugs.", player );
  61.     else
  62.     {
  63.     IncCash( player, 5000)
  64.     status[player.ID].jewsm = false;
  65.     MessagePlayer("You've sold your jewlery!", player)
  66.     }
  67.     }
  68.     }
  69.     else if ( cmd == "smuggledrugs" )
  70.     {
  71.     if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
  72.     else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
  73.     else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewellery!", player)
  74.     else
  75.     {
  76.     local Pos = player.Pos, checkpoly;
  77.     checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
  78.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
  79.     else
  80.     {
  81.     status[player.ID].drug = true;
  82.     MessagePlayer("[#00f00f]You've smuggled drugs, Now goto the broken drug store near mall to sell them!", player);
  83.     DecCash( player, 500 )
  84.     }
  85.     }
  86.     }
  87.     else if ( cmd == "selldrugs" )
  88.     {
  89.     if ( status[ player.ID ].drug == false ) MessagePlayer("[#ff0000]You don't have drugs, Goto the old broken house near boat yard to smuggle them.", player)
  90.     else
  91.     {
  92.     local Pos = player.Pos, checkpoly;
  93.     checkpoly = InPoly( Pos.x, Pos.y, 386.977, 748.874,378.109, 749.074,379.726, 760.015,387.38, 760.006);
  94.     if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the drug store near mall to sell drugs.", player );
  95.     else
  96.     {
  97.     IncCash( player, 5000)
  98.     status[player.ID].drug = false;
  99.     MessagePlayer("You've sold your drugs!", player)
  100.     }
  101.     }
  102.     }
  103. //* On your player class
  104. jewsm = false;
  105. wepsm = false;
  106. drug = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement