View Single Post
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 03-03-2008 , 14:57   Re: Advertisements
Reply With Quote #6

The reload command doesn't seem to work. It still prints out the same exact things as before I used it.
- See edit

Also, I added in {FF}. Here's the code I used.

Code:
        if (StrContains(sBuffer, "{FF}")) {
            new Handle:ffConVar, ffSetting, String:sFF[6];
            ffConVar = FindConVar("mp_friendlyfire");
            ffSetting = GetConVarInt(ffConVar);

            switch (ffSetting) {
                case 0:
                    Format(sFF, sizeof(sFF), "OFF");
                case 1:
                    Format(sFF, sizeof(sFF), "ON");
            }

            ReplaceString(sBuffer, sizeof(sBuffer), "{FF}", sFF);
        }
[edit]

Nevermind about the reload thing. I was saving the file to the wrong place like a fool.

Last edited by bl4nk; 03-05-2008 at 16:09.
bl4nk is offline