13.03.2013, 14:37
pawn Код:
CMD:setmember(playerid, params[])
{
new tmp[256], idx;
tmp = strtok(params,idx);
new id = strval(tmp);
if(gsfmember[playerid] < 2) return SendClientMessage(playerid, 0xFF000000, "You cannot use this command");
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setmember [id]");
if(request[id] == 1 || request[id] == 2) 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;
}