zcmd Help. (2)
#2

pawn Код:
#include <a_samp>
#include <zcmd>

native sscanf(const data[], const format[], {Float,_}:...);

#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xA10000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA

CMD:aacc(playerid, params[])
{
        new id;
        if(!IsPlayerAdmin(playerid))
            return SendClientMessage(playerid, COLOR_RED, "You are not [A] Member");
        if(sscanf(params, "u", id))
            return SendClientMessage(playerid, COLOR_WHITE, "Wrong Player ID!");

        new string[128];
        format(string, sizeof(string), "%s(%d) has invited you to be [A] Do you Accept? /acceptinvite, or You decline? /declineinvite?", GetName(playerid), playerid);
        SendClientMessage(id, COLOR_YELLOW, string);
        format(string, sizeof(string), "You have invited %s(%d) to be an [A] Member.", GetName(id), id);
        SendClientMessage(playerid, COLOR_YELLOW, string);

        SetPVarInt(id, "[A]Invite", 1);
        SetPVarInt(id, "[A]Inviter", playerid);
        return 1;
}
maybe because u add capital A
Reply


Messages In This Thread
zcmd Help. (2) - by Alex_Obando - 31.03.2011, 00:53
Re: zcmd Help. (2) - by Garry Roger - 31.03.2011, 00:59
Re: zcmd Help. (2) - by Garry Roger - 31.03.2011, 01:01
Re: zcmd Help. (2) - by SchurmanCQC - 31.03.2011, 01:02
Re: zcmd Help. (2) - by Garry Roger - 31.03.2011, 01:06
Re: zcmd Help. (2) - by Garry Roger - 31.03.2011, 01:18
Re: zcmd Help. (2) - by SchurmanCQC - 31.03.2011, 01:19
Respuesta: zcmd Help. (2) - by Alex_Obando - 31.03.2011, 01:36
Re: zcmd Help. (2) - by Scenario - 31.03.2011, 01:59
Respuesta: Re: zcmd Help. (2) - by Alex_Obando - 31.03.2011, 02:13

Forum Jump:


Users browsing this thread: 2 Guest(s)