My Filterscript makes it so no server commands work (IE. Commands in the GM)
#15

Hmm I see you're using Strcmp wrong for commands. Like you did here
pawn Код:
if(strcmp(cmdtext,"/edm",true) )
    {
        ResetPlayerWeapons(playerid);
        SetPlayerPos(playerid,28.1063, 2242.8928, 126.0000);
        SetPlayerInterior(playerid,0);
        GivePlayerWeapon(playerid,30,999999);
        GameTextForPlayer(playerid,"Welcome to ~g~EEFS~N~ ~R~DeathMatch!",2500,3);
        SetPlayerHealth (playerid, 100);
        return 1;
    }
I guess you meant to check if /edm is the same as cmdtext[]. Well I think you should've done it like this:

pawn Код:
if(!strcmp(cmdtext,"/edm",true))
    {
        ResetPlayerWeapons(playerid);
        SetPlayerPos(playerid,28.1063, 2242.8928, 126.0000);
        SetPlayerInterior(playerid,0);
        GivePlayerWeapon(playerid,30,999999);
        GameTextForPlayer(playerid,"Welcome to ~g~EEFS~N~ ~R~DeathMatch!",2500,3);
        SetPlayerHealth (playerid, 100);
        return 1;
    }
Otherwise when you enter anything with a / before it (e.g /blablabla) it will execute the /edm stuff.

Another thing I noticed in the /maps command

pawn Код:
GameTextForPlayer(playerid,"~w Maps by 18240 ]/edm] ]/aarace] ]/bikestunt]",2500,3);
which might cause crashes because of the ~w. This should be fine:

pawn Код:
GameTextForPlayer(playerid,"~w~ Maps by 18240 ]/edm] ]/aarace] ]/bikestunt]",2500,3);

Here is a fixed version of your code. By the way nice maps .
Reply


Messages In This Thread
My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:15
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by MP2 - 18.07.2012, 21:21
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:24
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:26
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:27
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:29
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:31
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:32
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:34
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:36
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 21:39
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 21:58
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by SA-MPDrifter - 18.07.2012, 21:59
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by XStormiest - 18.07.2012, 22:02
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [KHK]Khalid - 18.07.2012, 22:54
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by Mauzen - 18.07.2012, 23:25
Re: My Filterscript makes it so no server commands work (IE. Commands in the GM) - by [MM]18240[FMB] - 18.07.2012, 23:46

Forum Jump:


Users browsing this thread: 2 Guest(s)