RSSy MYGO.pl Opublikowano Lipiec 16, 2019 o 02:13 RSSy Udostępnij Opublikowano Lipiec 16, 2019 o 02:13 Description This is a discord version of the SWGM plugin, it was requested HERE by paulo_crash Players can't use the restricted commands if they are not connected to the discord server. When a player connect, he will get an assign ID, with he can link his account through discord.Known bugs If a player disconnect from the discord server after he has linked it ingame, it wont be refreshed, I'll fix it in the next release.Dependencies You can't run this plugin at all without Discord-APIInstallation Code: Create a discord bot, and a new channel in your server Upload the smx and the .ini to your server Edit the "cfg/sourcemod/discord_server_manager.cfg" with your details Cvars Spoiler PHP Code: dsm_token "" // Your discord bot tokendsm_channel_id "" // Channel ID in discord where the players can link their accountsdsm_assign_command "!link" // Command in discord to link the account. eg.( !link 12345 )dsm_use_swgm "0" // 1 - Use the same .ini as the SWGM for the commands | 0 - Use a new ini (configs/dsm/command_listener.ini) Commands Spoiler PHP Code: sm_link //The player can get his assign id with this command Natives && Forwards Spoiler PHP Code: /** * Check if the client has linked his account * * * @param client Client Index. * @return True if the client has an accountlinked, false otherwise. */ native bool DSM_IsDiscordMember(int client);/** * Called when a player has linked his account * @param client client that has linked the account. */forward void DSM_OnClientLinkedAccount(int client); If you have got any problem or error with the plugin feel free to reply to the threadDownloadDirect DownloadGithub RepoReleases Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się