C++ Server Plugin API help
#1
Hi there,

I've been creating numerous plugins for my MW3 server, but there is something which i can't seem to figure out.

I'm trying to do an OnSay command so that when somebody says !fovincrease the FOV changes to e.g 80

if anyone can help with an example piece of code it would be appreciated.
Reply

#2
Code:
PLUGIN_API_ONSAY { string s = Message; if(s.substr(0, 12) == "!fovincrease") { SetClientDvar(Client->ClientNum, "cg_fov \"80\""); return CHAT_NONE; } return CHAT_ALL; }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Help cmdlist, dvarlist server crash Nerus 17 16,447 11-09-2013, 23:54
Last Post: Nerus
Wink Plugin with !ban !kick and !tampban clemi555 3 6,513 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,610 11-08-2013, 19:13
Last Post: clemi555
  Our Level Fastfile is Different from the Server. CheeseToast 6 15,508 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 9,557 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 17,487 10-28-2013, 01:15
Last Post: kotyra972
  Help Modifying plugin maverigh 5 7,662 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 8,325 10-19-2013, 06:59
Last Post: iRoNinja
  Help how to turn off map in dedicated server pero123 8 9,576 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 8,156 10-08-2013, 18:11
Last Post: iRoNinja

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.