SA-MP Forums Archive
Ban Apeal Message On Re-Connect? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ban Apeal Message On Re-Connect? (/showthread.php?tid=99608)



Ban Apeal Message On Re-Connect? - DeltaAirlines12 - 28.09.2009

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.


Re: Ban Apeal Message On Re-Connect? - ded - 28.09.2009

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);
}



Re: Ban Apeal Message On Re-Connect? - DeltaAirlines12 - 29.09.2009

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.


Re: Ban Apeal Message On Re-Connect? - ded - 29.09.2009

Upload your script to pastebin and I will fix it.


Re: Ban Apeal Message On Re-Connect? - ded - 29.09.2009

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.


Re: Ban Apeal Message On Re-Connect? - Correlli - 29.09.2009

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


Re: Ban Apeal Message On Re-Connect? - ded - 29.09.2009

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


Re: Ban Apeal Message On Re-Connect? - BMUK - 29.09.2009

Would be great to have

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


Re: Ban Apeal Message On Re-Connect? - dice7 - 29.09.2009

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


Re: Ban Apeal Message On Re-Connect? - BMUK - 29.09.2009

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


Re: Ban Apeal Message On Re-Connect? - ded - 29.09.2009

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.