10.03.2013, 10:31
Quote:
Код:
request[id] == 1 And you are using a different variable, I used "Requested" not request. EDIT: Didn't see that "else" there, it should be return. pawn Код:
|
pawn Код:
CMD:setleader(playerid, params[])
{
new id;
if(admin[playerid] < 3) return SendClientMessage(playerid, 0xFF000000, "Your not an admin with right lvl.");
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2512.8247,-1664.4379,13.5784)) return SendClientMessage(playerid, 0xFF000000, "Go to the HQ you want to set the leader.");
if(sscanf(params,"u", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setleader [id]");
format(outp,sizeof(outp),"%s gave you the leadership of Grove Street Families!",PlayerName(playerid));
SendClientMessage(id, 0xd0d18100,outp);
format(outp,sizeof(outp),"You sat %s as leader of Grove Street Families!",PlayerName(id));
SendClientMessage(playerid, 0xd0d18100,outp);
gsfmember[id] = 2;
return 1;
}