Ban Apeal Message On Re-Connect?
#1

Ok, after a player is banned, and trys to come back to my server, how would I make it say
"Your are banned from this server, to apeal, go to www.my-website-here.com" ?
Thanks.
Reply
#2

You need a player database. If you have that, something like this:

Under OnPlayerConnect:

pawn Код:
if(pInfo[playerid][Banned] == 1)
{
   SendClientMessage(playerid, Red, "** You are banned from this server. To make an appeal go to http://www.mywebsitehere.com[url=http://][/url]");
   return Kick(playerid);
}
Reply
#3

Quote:
Originally Posted by » Pawnst★r «
You need a player database. If you have that, something like this:

Under OnPlayerConnect:

pawn Код:
if(pInfo[playerid][Banned] == 1)
{
   SendClientMessage(playerid, Red, "** You are banned from this server. To make an appeal go to http://www.mywebsitehere.com[url=http://][url=http://][url=http://]");
   return Kick(playerid);
}
Crap, It Says This:

Код:
C:\Users\Dustin\Desktop\Xtreme Stuntage\gamemodes\Xtreme_Stunts.pwn(1991) : error 017: undefined symbol "pInfo"
C:\Users\Dustin\Desktop\Xtreme Stuntage\gamemodes\Xtreme_Stunts.pwn(1991) : warning 215: expression has no effect
C:\Users\Dustin\Desktop\Xtreme Stuntage\gamemodes\Xtreme_Stunts.pwn(1991) : error 001: expected token: ";", but found "]"
C:\Users\Dustin\Desktop\Xtreme Stuntage\gamemodes\Xtreme_Stunts.pwn(1991) : error 029: invalid expression, assumed zero
C:\Users\Dustin\Desktop\Xtreme Stuntage\gamemodes\Xtreme_Stunts.pwn(1991) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Also, I have a /register /login system. (with admin commands.) and its a filterscript.
Reply
#4

Upload your script to pastebin and I will fix it.
Reply
#5

I have no reason to steal anybody elses work, I would never do it. I think it's wrong, and I think it makes you a pretty shitty scripter if you have to do that .. and I am not a shitty scripter.

If you don't want to upload your script I can't help you.
Reply
#6

Instead of pInfo[playerid][Banned], just use the variable with which you check if player is banned.
Reply
#7

I would've said that, but I doubt he will understand what you mean.
Reply
#8

Would be great to have

pawn Код:
OnBannedIpConnect()
* I know its a feature lock! Before y'all start quoting kye. nubs
Reply
#9

Why suggesting useless stuff if you can easily script good alternatives ?
Reply
#10

I know its easy to script an alternative. Its easier to have a native callback though
Reply
#11

It would be easier to have a native function .. but seeing as that isn't going to happen anytime soon ..
pawn Код:
if(pInfo[playerid][Banned] == 1)
{
   SendClientMessage(playerid, Red, "** You are banned from this server. To make an appeal go to http://www.mywebsitehere.com[url=http://][url=http://][url=http://][url=http://]");
   return Kick(playerid);
}
... pretty damn simple.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)