Can anyone make it to where if a player is wanted by the police, they cannot use the kill command.
[sp](DarkRP)[/sp]
Assuming there is _R.Player:IsWanted( ) I've made the following using [b][url=wiki.garrysmod.com/?title=Gamemode.CanPlayerSuicide]Gamemode.CanPlayerSuicide [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]:
[lua]
function GM:CanPlayerSuicide( ply )
return not ply:IsWanted( );
end;
[/lua]
Or you can block kill completely, since it's a stupid command that ruins DarkRP. Steal and then suicide. Maybe have a request from some moderator for a kill command, though, in case you're stuck.
Look in the code for the part where, when they are in jail, they cannot suicide. Put that part into the part where they are wanted.
[QUOTE=Lol-Nade;23979153]Or you can block kill completely.[/QUOTE]
This is the best method.
[editline]12:54PM[/editline]
returning false in PlayerCanSuicide, that is.
Sorry, you need to Log In to post a reply to this thread.