Recent Kicks and Bans.
#1

hey how can i create a kick and ban records in a dialog like how this guy do this?

this would be good but this seems hard for me to do so i need some help on this one please.



Reply
#2

Hmm that is simple, just create system witch will save bans in 1 file and load them from 1 file, if ur using mysql that is too easy, just in table bans get 20 last bans reasons etc...
Reply
#3

That looks familiar.

:P
Reply
#4

i dont use sql my bans save in a text file.
Reply
#5

and yh! i need something like this!
Reply
#6

I cannot comprehend why people think that MySQL and INI are substitutes and cant work as a combination while there is no logical reason they can't. If one part of your systems uses MySQL and another doesn't it is alright and won't destroy your gamemode magically.

Matite most likely uses MySQL(as a comparison to other available implementations of the SQL language integrated into PAWN such as SQLite and others). A statement that would be executed following a kick or ban would probably contain the following:

pawn Код:
mysql_format(db, query, sizeof query, "INSERT into `bans` (SQLId, PlayerName, IP, reason, Admin, AdminSQLId, PlayerHash, AdminHash) VALUES (%d, '%s', '%s', '%s', '%s', %d)", PlayerSQL(banned), PlayerName(banned), PlayerIP(banned), PlayerName(playerid), PlayerSQL(playerid)), PlayerHash(banned), PlayerHash(playerid));
The above would represent banned as the player being banned while the playerid holds the player executing the ban(or a kick). Note that MySQL isn't the only option for this, this could be done in INI but I would for obvious reasons advise against it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)