Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function jail ( id )
- {
- local plr = FindPlayer ( id );
- if ( plr )
- {
- local jailtime = PlayerWanted( player ) * 20
- status[ plr.ID ].Jailed = true;
- plr.Pos = Vector ( 388.680, -509.527, 8.415 )
- QuerySQL( db,"UPDATE Jail SET Jailed='yes' WHERE Name='" + plr.Name +"'");
- QuerySQL( db,"UPDATE Jail SET time='" + jailtime + "' WHERE Name='" + plr.Name +"'");
- NewTimer( "unjail", jailtime ,1,plr.ID );
- }
- }
- function unjail ( id )
- {
- local plr = FindPlayer ( id );
- if ( plr )
- {
- status[ plr.ID ].Jailed = false;
- QuerySQL( db,"UPDATE Jail SET Jailed='no' WHERE Name='" + plr.Name +"'");
- QuerySQL( db,"UPDATE Jail SET time='0' WHERE Name='" + plr.Name +"'");
- QuerySQL( db,"UPDATE Jail SET wanted='0' WHERE Name='" + plr.Name +"'");
- plr.Pos = Vector ( 397.718, -471.137, 11.7534 )
- MessagePlayer ( "Free ",plr );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement