12.03.2013, 16:08
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!");
{
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;
}
Whats wrong?
And how can i add so another player can use this if request[id] == 2?