Advertisement
KingOfVC

Untitled

Aug 7th, 2014
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 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
  17. {
  18. ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement