Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <csx>
- #define PLUGIN "NadeModes Controller"
- #define VERSION "2.0"
- #define AUTHOR "DaNNe."
- new cvar_list[][] = {
- "nademodes_proximity_enabled",
- "nademodes_satchel_enabled",
- "nademodes_trip_enabled",
- "nademodes_motion_enabled"
- }
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_event("HLTV", "NEW_ROUND", "a", "1=0", "2=0")
- }
- public NEW_ROUND() {
- for(new i; i < sizeof cvar_list; i++)
- set_cvar_num(cvar_list[i], 1)
- }
- public bomb_planted(PLANTER) {
- for(new i; i < sizeof cvar_list; i++)
- set_cvar_num(cvar_list[i], 0)
- //ColorChat(0, "!g[FURIEN]!n BOMBA A FOST PLANTATA.")
- ColorChat(0, "!g[FURIEN]!n Modurile:!t PROXIMITY!n,!t SATCHEL CHARGE!n,!t TRIP LASER!n,!t MOTION SENSOR!n au fost dezactivate.")
- }
- stock ColorChat(const id, const input[], any:...) {
- new count = 1, players[32];
- static msg[191];
- vformat(msg, 190, input, 3);
- replace_all(msg, 190, "!g", "^4");
- replace_all(msg, 190, "!n", "^1");
- replace_all(msg, 190, "!t", "^3");
- if(id) players[0] = id;
- else get_players(players, count, "c");
- for(new i = 0; i < count; i++) {
- if(is_user_connected(players[i])) {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
- write_byte(players[i]);
- write_string(msg);
- message_end();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement