Hello !
I'm requesting a plugin that makes the player can't fire if there are in the Jail.
I have a Snippet (Not mine, by Steven from NSNF TEAM) IsInJail :
Code:
IsInJail(client) { new Float:v[3]; GetEntPropVector(client, Prop_Send, "m_vecOrigin", v); /* Jail Principal */ if ( v[0] >= -1512.0 && v[0] <= -1304.0 && v[1] >= -492.0 && v[1] <= 748.0 && v[2] >= 60.0 && v[2] <= 260.0 ) /* Radio Gauche */ return true; else if ( v[0] >= -1519.0 && v[0] <= -1283.0 && v[1] >= 984.0 && v[1] <= 1520.0 && v[2] >= 193.0 && v[2] <= 266.0 ) return true; /* Radio Droite */ else if ( v[0] >= -1225.0 && v[0] <= -1048.0 && v[1] >= 984.0 && v[1] <= 1520.0 && v[2] >= 193.0 && v[2] <= 266.0 ) return true; else return false; }
Sry, for the code, you can see this better here -> Snippet - IsInJail
I'm requesting a plugin that makes this :
If The player is in the jail (If IsInJail), the player can't fire.
If the player isn't in the jail, he can fire.
I want too an advert who say in the chat and in Center Message : You are in the Jail, you can't fire !
Thx To you !
EDIT :
Sry, for the code, you can see this better here -> Snippet - IsInJail