sfcnr/gamemodes/irresistible/cnr/features/cop/_cop.pwn

29 lines
1008 B
Plaintext
Raw Normal View History

/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: cnr\features\cop\_cop.pwn
* Purpose: encloses all cop/police (LEO) modules & components (cnr)
*/
/* ** Includes ** */
#include "irresistible\cnr\features\cop\jail.pwn"
2018-12-22 12:36:05 +00:00
#include "irresistible\cnr\features\cop\cop_chat.pwn"
#include "irresistible\cnr\features\cop\arrest.pwn"
2019-01-01 07:13:42 +00:00
#include "irresistible\cnr\features\cop\bail.pwn"
#include "irresistible\cnr\features\cop\ticket.pwn"
2019-04-10 03:06:20 +00:00
#include "irresistible\cnr\features\cop\emp.pwn"
/* ** Hooks ** */
2019-04-10 17:27:53 +00:00
/*hook OnPlayerTakeDamage( playerid, issuerid, Float: amount, weaponid, bodypart )
2019-04-10 03:06:20 +00:00
{
2019-04-10 17:27:53 +00:00
if ( p_Class[ playerid ] == CLASS_POLICE && !IsPlayerNPC( playerid ) )
2019-04-10 03:06:20 +00:00
{
new Float: x, Float: y, Float: z;
2019-04-10 17:27:53 +00:00
GetPlayerPos( playerid, x, y, z );
2019-04-10 03:06:20 +00:00
if ( x >= -1650.0 && x <= -1571.0 && y >= 647.0 && y <= 711.0 )
2019-04-10 17:27:53 +00:00
return ShowPlayerHelpDialog( issuerid, 2000, "You cannot damage LEO officers while they are within the Police Department HQ." ), 0;
2019-04-10 03:06:20 +00:00
}
return 1;
2019-04-10 17:27:53 +00:00
}*/