Skip to content

Instantly share code, notes, and snippets.

View Alasnkz's full-sized avatar
👁️‍🗨️

Alasnkz

👁️‍🗨️
  • England
View GitHub Profile
@Alasnkz
Alasnkz / api.pwn
Last active January 19, 2023 20:04
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");
}
#include <a_samp>
#include <core>
#include <float>
#include <sscanf2>
#include <discord-connector>
#pragma tabsize 0
forward OnPostPlayerStat(playerid);
main()