This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <a_samp> | |
#include <core> | |
#include <float> | |
#include <sscanf2> | |
#include <discord-connector> | |
#pragma tabsize 0 | |
forward OnPostPlayerStat(playerid); | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
native DCC_Command:DCC_CreateCommand(const command_name[DCC_COMMAND_SIZE], const description[DCC_COMMAND_DESCRIPTION_SIZE], const callback[], bool:allow_everyone = true, DCC_Guild:guild = DCC_INVALID_GUILD); | |
native DCC_SendInteractionEmbed(DCC_Interaction:interaction, DCC_Embed:embed, const message[] = ""); | |
native DCC_GetInteractionContent(DCC_Interaction:interaction, dest[], max_size = sizeof dest); | |
forward GuildCommand(DCC_Interaction:interaction, DCC_User:user); | |
forward NonGuildCommand(DCC_Interaction:interaction, DCC_User:user); | |
public OnGameModeInit() { | |
DCC_CreateCommand("guild", "a guild test command", "GuildCommand", false, DCC_FindGuildById("")); | |
DCC_CreateCommand("global", "a global test command", "NonGuildCommand"); | |
} |