It is probably best to make something like this with libcod.
http://www.urbanterror.info/forums/t...ost__p__201750
Edit: Something like (example)
PHP Code:
int hook_SVC_RemoteCommand(int from, int msg)
{
if(sendpass != rconpass)
{
int time = ...; //
if (time<(lasttime+1000)) { // limit bad password by 1s
return;
}
lasttime = time;
}
SVC_RemoteCommand(from, msg);
}