Well, if you look in the pawn scripting stuff, you'll notice that theres these commands:
SendRconEvent
SendRconCommand
Aswell as a callback named OnRconCommand.
Although i havn't tested these commands, i imagine they would work like this:
public OnRconCommand(cmdtext[])
{
new cmd[256];
new tmp[256];
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "lights", true) == 0)
{
tmp = strtok(cmdtext, idx); // player id
new playerid = FindPlayerIDFromString(tmp);
tmp = strtok(cmdtext, idx); // lights on/off
if ( strcmp(tmp,"1",true) == 0 ) SetVehicleLights( GetPlayerVehicleID(playerid), true );
else SetVehicleLights( GetPlayerVehicleID(playerid), false );
}
}
public OnPlayerRequestClass(playerid, classid)
{
SendRconEvent( "[ClassRequest] %i %i", playerid, classid );
}
This is just a rough draft but it looks asthough it will work. Then all you need to do is parse and send the stuff in the mirc dll