SA-MP Forums Archive
/command and numbers - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /command and numbers (/showthread.php?tid=308983)



/command and numbers - (_AcE_) - 05.01.2012

If someone types /fpslimit 25 is it possible for me to send the message to online admins?

If so, how do I send it? I have:

pawn Код:
dcmd_fpslimit(playerid,params[])
{
    {
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string, sizeof(string), "%s(%d) has set his fpslimit to: %d", playername, playerid, ????);
        SendMessageToAdmins(string);
        return 1;
    }
    return 1;
}
Where can I detect what numbers they put


Re: /command and numbers - (_AcE_) - 05.01.2012

someone help me?


Re: /command and numbers - [HiC]TheKiller - 05.01.2012

I'm pretty sure that it goes through the client instead of the server. I don't think you can actually detect when the player types /fpslimit, I may be wrong though. There was a way to detect someone's lag though, look around for that.