SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/08/2020, 07:35 PM   #1
playstores
Huge Clucker
 
Join Date: Feb 2018
Location: Germany
Posts: 221
Reputation: 29
Default Discord ingame BAN?

Code:
stock BanUserDiscord(playerid,victim[],discri[],reason[])
{
    new DCC_User:dicc = DCC_FindUserByName(victim,discri),string[128];
    if(DCC_User:dicc == DCC_User:0) return SCM(playerid,COOLRED,"[DISCORD-BAN] Ban could not be executed, invalid User!");
    format(string,sizeof(string),"[DISCORD-BAN]: Adminstrator %s permanently %s banned %s, Reason: %s",GetName(playerid),victim,reason);
    SendClientMessageToAll(COLOR_LIGHTRED,string);
    DCC_CreateGuildMemberBan(DCC_Guild:dicc,DCC_User:dicc,reason);
    return 1;
}

I am using the discord connector from maddinat0r, how to even do that?

And what exactly is the guild? Already googelt it, but there is nothing useful.
playstores is offline   Reply With Quote
Old 05/08/2020, 07:10 AM   #2
coool
Gangsta
 
coool's Avatar
 
Join Date: Feb 2013
Location: Republic of Pakistan
Posts: 637
Reputation: 64
Default Re: Discord ingame BAN?

guild means server
__________________
coool is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Discord Admin Control Panel - Manage players through discord! Exhibit Filterscripts 34 12/08/2020 04:28 PM
Need help DM me on discord please PopularTech Scripting Help 1 06/04/2020 08:45 AM
[FilterScript] Discord Chat - Real time chatting ( Discord + In Game) Exhibit Filterscripts 36 16/10/2019 08:32 PM
Create Ingame Bots?? And Then play them ingame? asdfgh98 Help Archive 2 16/12/2009 12:30 PM


All times are GMT. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.