Hey, I have a small problem I decided to embrace the work of the plugin for VIP people
I have slightly modified the code
Original Code
PHP Code:
public Action Command_Menu(int client, int args)
{
if (!IsValidClient(client))
return Plugin_Handled;
if (!IsPlayerAlive(client))
{
ReplyToCommand(client, "[Fortnite Emotes] You must be alive to use this!");
return Plugin_Handled;
}
Menu_Dance(client);
return Plugin_Handled;
}
After changes
Code:
public Action Command_Menu(int client, int args)
{
if(!IsPlayerVIP(client))
{
PrintToChat(client, "\x07╔══════════════════════════════════╗");
PrintToChat(client, "\x04[Dance] \x01Ta Komenda jest tylko dla VIP'a.");
PrintToChat(client, "\x07╚══════════════════════════════════╝");
return Plugin_Handled;
}
if (!IsValidClient(client))
return Plugin_Handled;
if (!IsPlayerAlive(client))
{
ReplyToCommand(client, "[Dance] Musisz być żywy, aby z tego skorzystać!");
return Plugin_Handled;
}
Menu_Dance(client);
return Plugin_Handled;
}
Somewhere at the bottom
stock bool IsPlayerVIP(int client, bool nobots = true)
{
if(GetUserFlagBits(client) & ADMFLAG_CUSTOM1) return true;
if(GetUserFlagBits(client) & ADMFLAG_ROOT) return true;
return false;
}
If you try to start the plugin, it crashes
HTML Code:
Plugin fortnite_emotes_demo.smx failed to load: Native "GameData.GameData" was not found.
And what a funny thing the unchanged plugin code works fine, which it adds to the attachment