[Help] - YCMD
#3

Rest of code?
All i did is this

pawn Код:
#include <YSI\y_commands>
test command i wanned to try

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;
}
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"
Reply


Messages In This Thread
[Help] - YCMD - by ***Niko*** - 29.11.2013, 17:19
Re: [Help] - YCMD - by Voxel - 29.11.2013, 18:17
Re: [Help] - YCMD - by ***Niko*** - 30.11.2013, 01:24
Re: [Help] - YCMD - by UnknownGamer - 30.11.2013, 01:32
Re: [Help] - YCMD - by ***Niko*** - 30.11.2013, 03:07
Re: [Help] - YCMD - by ***Niko*** - 30.11.2013, 17:15

Forum Jump:


Users browsing this thread: 2 Guest(s)