add new player LEO arresting support
This commit is contained in:
parent
3a9d6127b9
commit
0922f8d8a0
@ -547,3 +547,19 @@ hook OnPlayerAccessEntrance( playerid, entranceid, worldid, interiorid )
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hook OnPlayerUpdateEx( playerid )
|
||||||
|
{
|
||||||
|
if ( p_Class[ playerid ] == CLASS_POLICE && GetPlayerScore( playerid ) < 50 )
|
||||||
|
{
|
||||||
|
new
|
||||||
|
Float: radius = 25.0,
|
||||||
|
closestCivilian = GetClosestPlayerEx( playerid, CLASS_CIVILIAN, radius );
|
||||||
|
|
||||||
|
if ( GetPlayerWantedLevel( closestCivilian ) != 0 )
|
||||||
|
{
|
||||||
|
return ShowPlayerHelpDialog( playerid, 4000, "Use ~y~/taze [ID]~w~, ~b~/cuff [ID]~w~, and ~r~/ar [ID] ~w~commands to arrest." );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user