Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. CMD:kupioruzje( playerid, params[] ) {
  2.  
  3. new businessId = GetPlayerBusinessId( playerid, VRSTA_GUNSHOP );
  4.  
  5. if( businessId == -1 ) {
  6. SendErrorMessage( playerid, "Morate biti u gunshopu." );
  7. } else if( businessId == -2 ) {
  8. SendErrorMessage( playerid, "Nemamo vise proizvoda!" );
  9. } else {
  10.  
  11. if( PlayerInfo[ playerid ][ xLevel ] < 2 ) return SCM( playerid, CRVENA, "Ne mozes kupiti oruzje nemas level 2!");
  12. if( PlayerInfo[ playerid ][ xGunLicense ] == false ) return SCM( playerid, CRVENA, "Ne mozete kupiti oruzje bez dozvole." );
  13. SPD( playerid, dialog_GUNSHOP, DSL, D_NASLOV, "Spray [4000$]\nDeagle [6000$]\nShotgun [7500$]\nM4 [7500$]\nMP5 [7500$]\nAK 47 [7500$]\nSniper[9000$]\nPancir[5000$]\nPancir[10000$]", "Kupi", D_ODUSTANI );
  14. }
  15. return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement