Assuming it is like this:
say ! player command
Code:
public checktext(id) {
if (!access(id,ADMIN_KICK)
return PLUGIN_HANDLED
// get what they said
new text[64]
read_args(text, 63)
// ignore if it doesn't start with !
if (text[0] != '!')
return PLUGIN_HANDLED
// clear the !
replace(text, 63, "!", "")
// trim it of extra spaces
trim(text)
// get name and data
new name[32], command[32]
strbreak(text, name, 31, command, 31)
// tada
new player = cmd_target(id, name);
}
Assuming it is just:
say ! player
Code:
public checktext(id) {
if (!access(id,ADMIN_KICK)
return PLUGIN_HANDLED
// get what they said
new text[64]
read_args(text, 63)
// ignore if it doesn't start with !
if (text[0] != '!')
return PLUGIN_HANDLED
// clear the !
replace(text, 63, "!", "")
// trim it of extra spaces
trim(text)
// tada
new player = cmd_target(id, text);
}
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS