I Need Ban Nick Script
#1

Hello
I need a ban nick script,
for example, /nban [nick],
the nick be saved to a file, if the player comes with nick banned, he is automatically kicked!
Reply
#2

This thing is already made. Why don't you search?

And if you want to make one, then I suggest you to use dini.
Reply
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(nban, 4, cmdtext);
    return 0;
}
pawn Код:
dcmd_nban(playerid, params[])
{
    if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "[INFO - USAGE]: /nban [playerid/partname]");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "No player with that ID");
    else
    {
        SendClientMessage(id, 0xFF0000AA, "You have been kicked");
        Ban(id);
    }
    return 1;
}
Something like this, maybe? Modify it to fit your needs.
Reply
#4

Oh, thanks
but,
we can help me make save system for this ?
for example: NicksBanned.txt! ._.
Reply
#5

Quote:
Originally Posted by [BKs
Xeretta[VL] ]
Oh, thanks
but,
we can help me make save system for this ?
for example: NicksBanned.txt! ._.
No, but you can try to do it yourself as you'll learn much more.
Here's a good page for you: https://sampwiki.blast.hk/wiki/File_Functions
Reply
#6

Edited: I'm very newbie in pawn, help me please!
Reply
#7

help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! help! =D
Reply
#8

Quote:
Originally Posted by [BKs
Xeretta[VL] ]
Edited: I'm very newbie in pawn, help me please!
We've all been "newbies", but you'll continue being one if you're only going to get your codes from everyone else. Learn how to make it yourself, and you'll understand much more.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)