Help with these commands?
#1

This command only set myslef leader, whats wrong? If i type another ID, it still set myself.

Код:
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,"ui", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setleader [id]");
	SendClientMessage(id, 0x99FF0000, "~You have been made an leader of Grove Street Families~");
	SendClientMessage(playerid, 0x99FF0000, "Leader have been set!");
	gsfmember[id] = 2;
	return 1;
}
and also, how could i make a cmd that sets a member if i want to use this:

Код:
if(request[id] == 2) return SendClientMessage(playerid, 0xFF000000, "This player is not requesting to join your organization!");
Reply


Messages In This Thread
Help with these commands? - by Qaiis - 09.03.2013, 21:38
Re: Help with these commands? - by Rock - 09.03.2013, 21:42
Re: Help with these commands? - by Qaiis - 09.03.2013, 21:46
Re: Help with these commands? - by Rock - 09.03.2013, 22:07
Re: Help with these commands? - by Qaiis - 09.03.2013, 22:17
Re: Help with these commands? - by Rock - 09.03.2013, 22:29
AW: Help with these commands? - by morocco - 09.03.2013, 23:54
Re: Help with these commands? - by Qaiis - 10.03.2013, 10:31
Re: Help with these commands? - by Sandiel - 10.03.2013, 10:34

Forum Jump:


Users browsing this thread: 4 Guest(s)