Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===============================VIP========================================
- else if ( cmd == "buyarmour" )
- {
- if ( !player.IsSpawned ) ePrivMessage( "[Error] - You have to spawn to use this command.", player );
- else if ( player.Armour == 100 ) ePrivMessage( "[Error] - Your armour is already %100.", player );
- else if ( player.Cash < 30000 ) ePrivMessage( "[Error] - You need $30000 to buy armour.", player );
- else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
- else
- {
- local q = QuerySQL( db, "SELECT Name FROM vip");
- if ( GetSQLColumnData( q, 0 ) )
- {
- ePrivMessage( "[VIP] - You're buy armour.", player );
- NewTimer( "army", 1, 1,player);
- }
- else ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
- }
- }
- else if ( cmd == "vheal" )
- {
- if ( !player.IsSpawned ) ePrivMessage( "[Error] - You have to spawn to use this command.", player );
- else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
- else if ( player.Health == 100 ) ePrivMessage( "[Error] - Your health is already %100.", player );
- else
- {
- local q = QuerySQL( db, "SELECT Name FROM vip");
- if ( GetSQLColumnData( q, 0 ) )
- {
- ePrivMessage( "[VIP] - You're healed." player );
- player.Health = 100
- }
- else ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
- }
- }
- else if ( cmd == "vfix" )
- {
- if ( !veh ) ePrivMessage( "[Error] - You must be in a vehicle.", player );
- else if ( Fight[ player.ID ] == true ) ePrivMessage( "[Error] - You are in fight zone, you cannot use this command.", player );
- else if ( veh.Health == 1000 ) ePrivMessage( "[Error] - Your vehicle is already fixed.", player );
- else
- {
- local q = QuerySQL( db, "SELECT Name FROM vip");
- if ( GetSQLColumnData( q, 0 ) )
- {
- ePrivMessage( "[VIP] - You're fixed your vehicle." player );
- player.Vehicle.Health = 1000;
- }
- else
- {
- ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
- }
- }
- }
- else if ( cmd == "hide" )
- {
- if ( !player.IsSpawed ) ePrivMessage( "[Error] - You haven't spawned yet", player );
- else if ( status[ player.ID ].VH == true ) ePrivMessage( "[Error] - You're Already hidden!", player );
- else
- {
- local q = QuerySQL( db, "SELECT Name FROM vip");
- if ( GetSQLColumnData( q, 0 ) )
- {
- status[ player.ID ].VH = true;
- player.RemoveMarker();
- ePrivMessage( "[VIP] - Remove you from radar." player );
- }
- else
- {
- ClientMessage( "[Error] - You're not VIP!!!", player,255,255,0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement