Raised This Month: $ Target: $400
 0% 

Ban System like default CS:GO MM


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Wanheda
Junior Member
Join Date: Oct 2017
Location: Portugal ♥
Old 07-21-2018 , 19:11   Ban System like default CS:GO MM
Reply With Quote #1

So... I am new to SM and I am now working on a brand new project, but I want to do a ban system like CS:GO default's MM or FaceIT for banning but I have no idea how to do it :/

Things I've acomplished so far:
  • Getting Client SteamID:
    Code:
    GetClientAuthId(pClient, AuthId_Steam2, pSteamID, sizeof(pSteamID));
  • Creating a DataTimer inside the disconnect event:
    Code:
    CreateDataTimer(300.0, TMR_BANNING, pClient, TIMER_REPEAT | TIMER_FLAG_NO_MAPCHANGE);

Things I want to add:
  • Chat messages every minute till the player gets banned (5 mins)
  • Checking if the time is 0 so I can ban him
  • Storing info in a DB so I can ban him from the website

Thanks in advance.
__________________
ʙᴇɪɴɢ ʜᴀᴘᴘʏ ᴅᴏᴇsɴ'ᴛ ᴍᴇᴀɴ ᴛʜᴀᴛ ᴇᴠᴇʀʏᴛʜɪɴɢ ɪs ᴘᴇʀꜰᴇᴄᴛ
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ𝐒𝐭𝐞𝐚𝐦
Wanheda is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode