Advertisement
KingOfVC

vip

Aug 8th, 2014
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. //===============================VIP========================================
  2. else if ( cmd == "buyarmour" )
  3. {
  4. if ( !player.IsSpawned ) ePrivMessage( "[Error] - You have to spawn to use this command.", player );
  5. else if ( player.Armour == 100 ) ePrivMessage( "[Error] - Your armour is already %100.", player );
  6. else if ( player.Cash < 30000 ) ePrivMessage( "[Error] - You need $30000 to buy armour.", player );
  7. else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
  8. else
  9. {
  10. local q = QuerySQL( db, "SELECT Name FROM vip");
  11. if ( GetSQLColumnData( q, 0 ) )
  12. {
  13. ePrivMessage( "[VIP] - You're buy armour.", player );
  14. NewTimer( "army", 1, 1,player);
  15. }
  16. else ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
  17. }
  18. }
  19. else if ( cmd == "vheal" )
  20. {
  21. if ( !player.IsSpawned ) ePrivMessage( "[Error] - You have to spawn to use this command.", player );
  22. else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
  23. else if ( player.Health == 100 ) ePrivMessage( "[Error] - Your health is already %100.", player );
  24. else
  25. {
  26. local q = QuerySQL( db, "SELECT Name FROM vip");
  27. if ( GetSQLColumnData( q, 0 ) )
  28. {
  29. ePrivMessage( "[VIP] - You're healed." player );
  30. player.Health = 100
  31. }
  32. else ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
  33.  
  34. }
  35. }
  36.  
  37. else if ( cmd == "vfix" )
  38. {
  39. if ( !veh ) ePrivMessage( "[Error] - You must be in a vehicle.", player );
  40. else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
  41. else if ( veh.Health == 1000 ) ePrivMessage( "[Error] - Your vehicle is already fixed.", player );
  42. else
  43. {
  44. local q = QuerySQL( db, "SELECT Name FROM vip");
  45. if ( GetSQLColumnData( q, 0 ) )
  46. {
  47. ePrivMessage( "[VIP] - You're fixed your vehicle." player );
  48. player.Vehicle.Health = 1000;
  49. }
  50. else
  51. {
  52. ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
  53. }
  54.  
  55. }
  56. }
  57. else if ( cmd == "hide" )
  58. {
  59. if ( !player.IsSpawed ) ePrivMessage( "[Error] - You haven't spawned yet", player );
  60. else if ( status[ player.ID ].VH == true ) ePrivMessage( "[Error] - You're Already hidden!", player );
  61. else
  62. {
  63. local q = QuerySQL( db, "SELECT Name FROM vip");
  64. if ( GetSQLColumnData( q, 0 ) )
  65. {
  66. status[ player.ID ].VH = true;
  67. player.RemoveMarker();
  68. ePrivMessage( "[VIP] - Remove you from radar." player );
  69. }
  70. else
  71. {
  72. ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
  73. }
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement