Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "smuggleweps" )
- {
- if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
- else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
- else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewlery!", player)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
- else
- {
- status[player.ID].wepsm = true;
- MessagePlayer("[#00f00f]You've smuggled weapons, Now goto the ammunation shop in downtown to sell it!", player);
- DecCash( player, 500 )
- }
- }
- }
- else if ( cmd == "smugglejewlery" )
- {
- if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
- else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
- else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewellery!", player)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
- else
- {
- status[player.ID].jewsm = true;
- MessagePlayer("[#00f00f]You've smuggled Jewellery, Now goto the jewellery shop in downtown to sell it!", player);
- DecCash( player, 500 )
- }
- }
- }
- else if ( cmd == "sellweps" )
- {
- 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)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, -682.759, 1201.86,-682.76, 1208.14,-666.617, 1209.52,-666.617, 1202.46);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the ammunation shop near downtown to sell drugs.", player );
- else
- {
- IncCash( player, 5000)
- status[player.ID].wepsm = false;
- MessagePlayer("You've sold your weapons!", player)
- }
- }
- }
- else if ( cmd == "selljewlery" )
- {
- 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)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, -852.752, 859.352,-858.946, 859.428,-861.462, 840.812,-853.694, 840.525);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the jewellery shop near downtown to sell drugs.", player );
- else
- {
- IncCash( player, 5000)
- status[player.ID].jewsm = false;
- MessagePlayer("You've sold your jewlery!", player)
- }
- }
- }
- else if ( cmd == "smuggledrugs" )
- {
- if ( status[ player.ID ].drug == true ) MessagePlayer("[#ff0000]You already have drugs!", player);
- else if ( status[ player.ID ].wepsm == true ) MessagePlayer("[#ff0000]You already have weapons!", player)
- else if ( status[ player.ID ].jewsm == true ) MessagePlayer("[#ff0000]You already have jewellery!", player)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, -386.803, -1732.65,-386.429, -1739.73,-367.768, -1732.76,-367.767, -1747.74);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the broken house near boat yard to smuggle.", player );
- else
- {
- status[player.ID].drug = true;
- MessagePlayer("[#00f00f]You've smuggled drugs, Now goto the broken drug store near mall to sell them!", player);
- DecCash( player, 500 )
- }
- }
- }
- else if ( cmd == "selldrugs" )
- {
- 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)
- else
- {
- local Pos = player.Pos, checkpoly;
- checkpoly = InPoly( Pos.x, Pos.y, 386.977, 748.874,378.109, 749.074,379.726, 760.015,387.38, 760.006);
- if( checkpoly == false ) ePrivMessage( "[Error]You need to be at the drug store near mall to sell drugs.", player );
- else
- {
- IncCash( player, 5000)
- status[player.ID].drug = false;
- MessagePlayer("You've sold your drugs!", player)
- }
- }
- }
- //* On your player class
- jewsm = false;
- wepsm = false;
- drug = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement