Advertisement
KingOfVC

asd123

Oct 21st, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function jail ( id )
  2. {
  3. local plr = FindPlayer ( id );
  4. if ( plr )
  5. {
  6. local jailtime = PlayerWanted( player ) * 20
  7. status[ plr.ID ].Jailed = true;
  8. plr.Pos = Vector ( 388.680, -509.527, 8.415 )
  9. QuerySQL( db,"UPDATE Jail SET Jailed='yes' WHERE Name='" + plr.Name +"'");
  10. QuerySQL( db,"UPDATE Jail SET time='" + jailtime + "' WHERE Name='" + plr.Name +"'");
  11. NewTimer( "unjail", jailtime ,1,plr.ID );
  12. }
  13. }
  14.  
  15. function unjail ( id )
  16. {
  17. local plr = FindPlayer ( id );
  18. if ( plr )
  19. {
  20.  
  21. status[ plr.ID ].Jailed = false;
  22. QuerySQL( db,"UPDATE Jail SET Jailed='no' WHERE Name='" + plr.Name +"'");
  23. QuerySQL( db,"UPDATE Jail SET time='0' WHERE Name='" + plr.Name +"'");
  24. QuerySQL( db,"UPDATE Jail SET wanted='0' WHERE Name='" + plr.Name +"'");
  25. plr.Pos = Vector ( 397.718, -471.137, 11.7534 )
  26. MessagePlayer ( "Free ",plr );
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement