31.03.2011, 00:59
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;
}