How could I go about this?
#1

I want to make it so when a player connects to the server, it will check the database for all the clan tags on the server. And then it would look through that user's username and if it will detect that clan tag in his username, it would kick him. I just don't know how to do this? Any tips?
Reply
#2

I would use a MySQL query to grab the clan tags into an array first thing on OnGameModeInit, so you have them locally. Then I would use strfind to search for the clan tag inside the player name on OnPlayerConnect.
Reply
#3

Quote:
Originally Posted by introzen
Посмотреть сообщение
I would use a MySQL query to grab the clan tags into an array first thing on OnGameModeInit, so you have them locally. Then I would use strfind to search for the clan tag inside the player name on OnPlayerConnect.
I would also advise MySQL, check out this tutorial to get started; https://sampforum.blast.hk/showthread.php?tid=129183
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)