30.11.2013, 01:24
Rest of code?
All i did is this
test command i wanned to try
As i said i have put command out of any callback,and i did search for "hash" in my script but i could not found any word,maybe is in some include?
But wich include use "hash"
All i did is this
pawn Код:
#include <YSI\y_commands>
pawn Код:
YCMD:tognewbiee(playerid, params[], help)
{
if(help) return SCM(playerid, COLOR_GREY, "Not supported");
new string[256];
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 2 && (!nonewbie))
{
nonewbie = 1;
BroadCast(COLOR_NICERED, "** Newbie chat channel disabled by an Admin !");
format(string, sizeof(string), "AdmCmd: %s Has Disabled the Newbie Chat", GetPlayerNameEx(playerid));
ABroadCast(COLOR_LIGHTRED, string, 5);
}
else if (PlayerInfo[playerid][pAdmin] >= 2 && (nonewbie))
{
nonewbie = 0;
BroadCast(TEAM_GROVE_COLOR, "** Newbie chat channel enabled by an Admin !");
format(string, sizeof(string), "AdmCmd: %s Has Enabled the Newbie Chat", GetPlayerNameEx(playerid));
ABroadCast(COLOR_LIGHTRED, string, 5);
}
else
{
SendClentMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
}
}
return 1;
}
But wich include use "hash"