23.01.2014, 15:13
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
Help me, please!
Код 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