Need advice
#4

pawn Код:
CMD:a(playerid,params[])
{
    AdminChats(playerid,params);// 1
    return 1;
}
CMD:admin(playerid,params[])
{
    AdminChats(playerid,params); // 2
    return 1;
}
AdminChats(playerid,params[])
{
    if (Pinfo[playerid][Admin] >= 1)
    {
        new string[256],text[256],idx;
        GetStringText(params, idx, text);
        if(!strlen(text))
        {
            SCM(playerid, COLOR_GRAD1, "TIP: /a [text]");
            return 1;
        }
        format(string, sizeof(string), "  Admin chat %s: %s", PlayerName[playerid],text);
        SendMessageToAdmin(COLOR_LIGHTGREEN,string,1);
    }
    return 1;
}
Reply


Messages In This Thread
Need advice - by Voldemort - 22.09.2010, 08:02
Re: Need advice - by iggy1 - 22.09.2010, 08:26
Re: Need advice - by Retardedwolf - 22.09.2010, 08:31
Re: Need advice - by Kyosaur - 22.09.2010, 08:32
Re: Need advice - by iggy1 - 22.09.2010, 08:36
Re: Need advice - by Voldemort - 22.09.2010, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)