HELP TWO SCRIPT
#1

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
Help me, please!
Reply


Messages In This Thread
HELP TWO SCRIPT - by Proxysteve - 23.01.2014, 15:13
Re: HELP TWO SCRIPT - by Nourdin - 23.01.2014, 15:16
Re: HELP TWO SCRIPT - by UnknownOwner - 23.01.2014, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)