Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: killvn1 on July 11, 2013, 03:22:12 pm

Title: Problem about /fall and /me SPAM
Post by: killvn1 on July 11, 2013, 03:22:12 pm
I make the anti flood or anti spam in my server. That's mean when player spam chat he will get kick.But soon i discover player in my server use /me [messenger] to spam and my anti spam can not kick him. Another problem it's the /fall disable fall on ground when hit by stubby , shotgun or spa

How can i disable /me or /fall in my server ? I use this

else if (strcmp(cmd, "/fall", true) == 0) {
        SendClientMessagef(playerid,RED, "You can't use this");
      return 1;

else if (strcmp(cmd, "/me", true) == 0) {
        SendClientMessagef(playerid,RED, "You can't use this");
      return 1;

But it's not work in my scripts.
Title: Re: Problem about /fall and /me SPAM
Post by: Elyks on July 11, 2013, 05:21:31 pm
I make the anti flood or anti spam in my server. That's mean when player spam chat he will get kick.But soon i discover player in my server use /me [messenger] to spam and my anti spam can not kick him. Another problem it's the /fall disable fall on ground when hit by stubby , shotgun or spa

How can i disable /me or /fall in my server ? I use this

else if (strcmp(cmd, "/fall", true) == 0) {
        SendClientMessagef(playerid,RED, "You can't use this");
      return 1;

else if (strcmp(cmd, "/me", true) == 0) {
        SendClientMessagef(playerid,RED, "You can't use this");
      return 1;

But it's not work in my scripts.

[pawn] if (strcmp(cmd, "/fall", true) == 1)  return true;
else if (strcmp(cmd, "/me", true) == 1) return true;[/pawn]
Title: Re: Problem about /fall and /me SPAM
Post by: stormeus on July 11, 2013, 11:19:39 pm
This is only possible in Squirrel. All you're doing is disabling /c /fall
Title: Re: Problem about /fall and /me SPAM
Post by: killvn1 on July 12, 2013, 07:44:49 am

[pawn] if (strcmp(cmd, "/fall", true) == 1)  return true;
else if (strcmp(cmd, "/me", true) == 1) return true;[/pawn]

Hmm not work in PAWN :(
Title: Re: Problem about /fall and /me SPAM
Post by: Elyks on July 12, 2013, 01:16:14 pm

[pawn] if (strcmp(cmd, "/fall", true) == 1)  return true;
else if (strcmp(cmd, "/me", true) == 1) return true;[/pawn]

Hmm not work in PAWN :(
...
This is only possible in Squirrel. All you're doing is disabling /c /fall