I use this script for show current staff on line when i compiler code with pawno there are 0 ERROR but the command not function
Код HTML:
#define FILTERSCRIPT
#include <a_samp>
#include <a_players>
#include <sscanf2>
#if defined FILTERSCRIPT
#else
stock AdminList(playerid)
{
new index = 0, pName[MAX_NAME], string[128];
SendClientMessage(playerid, COLORE_AVVISO, "** | Staff Online | **");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
GetPlayerName(i, pName, sizeof(pName));
SendClientMessage(playerid, -1, pName);
index++;
}
}
if(index == 0) return SendClientMessage(playerid, -1, "Non ci sono Admin online");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/staff", cmdtext, true, 10) == 0)
{
AdminList(playerid);
return 1;
}
#endif
It won't work. You can't call a player file from a FS. You would need to add this code in your gamemode to make it work.