SA-MP Forums Archive
HELP TWO SCRIPT - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP TWO SCRIPT (/showthread.php?tid=489647)



HELP TWO SCRIPT - Proxysteve - 23.01.2014

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!


Re: HELP TWO SCRIPT - Nourdin - 23.01.2014

You have to add stocks under your script and not on the top I guess.


Re: HELP TWO SCRIPT - UnknownOwner - 23.01.2014

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.