Advertisement
#1

Hello!
I need a anti advertisement.In that if player type their ip address they should get kick or ban and not only in main chat, in it on /pm messages too ( very important) Please help me fast its urgent
Reply
#2

http://forum.sa-mp.com/showpost.php?...&postcount=977

Search next time please.
Reply
#3

Ok but how it will work in /PM ?
Reply
#4

This doesnt go for a specific text, it goes for all mate. So it doesnt matter if you type in /pm or global, player will still get banned for advertising.
Reply
#5

no its not working in /pm
Reply
#6

Please tell me you're actually using it in your PM command.

Show us your PM command.
Reply
#7

when anyone advertise a server ip through this cmd then they should get banned.
pawn Код:
CMD:me(playerid,params[]) {
    new Message[128], sendername[MAX_PLAYER_NAME];
    new actiontext[MAX_CHATBUBBLE_LENGTH+1];
    new metext[MAX_CHATBUBBLE_LENGTH+1];
    new pname[24],string[128];
    GetPlayerName(playerid,pname,sizeof(pname));
    if (sscanf(params, "s", Message)) return SendMessageToPlayer(playerid, COLOR_LIGHTBLUE, "USAGE: /me <text>");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(actiontext,MAX_CHATBUBBLE_LENGTH,"* %s",Message);
    format(metext,MAX_CHATBUBBLE_LENGTH,"*%s %s",sendername,Message);
    SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,30.0,10000);
    SendMessageToAll(NICE_PINK,metext);
    return 1;}
Reply
#8

Quote:
Originally Posted by Alexander_123
Посмотреть сообщение
when anyone advertise a server ip through this cmd then they should get banned.
pawn Код:
CMD:me(playerid,params[]) {
    new Message[128], sendername[MAX_PLAYER_NAME];
    new actiontext[MAX_CHATBUBBLE_LENGTH+1];
    new metext[MAX_CHATBUBBLE_LENGTH+1];
    new pname[24],string[128];
    GetPlayerName(playerid,pname,sizeof(pname));
    if (sscanf(params, "s", Message)) return SendMessageToPlayer(playerid, COLOR_LIGHTBLUE, "USAGE: /me <text>");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(actiontext,MAX_CHATBUBBLE_LENGTH,"* %s",Message);
    format(metext,MAX_CHATBUBBLE_LENGTH,"*%s %s",sendername,Message);
    SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,30.0,10000);
    SendMessageToAll(NICE_PINK,metext);
    return 1;}
Like I said, you actually need to USE the StringContainsIP function (or whatever it's called) within that script.
Reply
#9

I used it but it is not working dude....
When i use that script , then i typed an ip on main chat and that time i got banned and when i type ip in /me cmd then i am not getting banned.Can you please fix it for me? +rep
Reply
#10

Help please.....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)