13.03.2013, 14:30
I am not sure if I have understood you correctly, but that's what I think should do the job.
pawn Код:
CMD:setmember(playerid, params[])
{
new id;
if(gsfmember[playerid] < 2) return SendClientMessage(playerid, 0xFF000000, "You cannot use this command");
if(sscanf(params,"u", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setmember [id]");
if(request[id] == 1) return SendClientMessage(playerid, 0xFF000000, "This player is not requesting to join your organization!");
if(request[id] == 2)
{
format(outp,sizeof(outp),"%s sat you as member of Grove Street Families!",PlayerName(playerid));
SendClientMessage(id, 0xd0d18100,outp);
format(outp,sizeof(outp),"You made %s a member of Grove Street Families!",PlayerName(id));
SendClientMessage(playerid, 0xd0d18100,outp);
gsfmember[id] = 1;
request[id] = 0;
}
return 1;
}