problem with bandan
#9

Yeah, therr was a mistake in the code i sent you, now it should work

Код:
CMD:setgangcolor(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
return 1;
}
new string[128], family, color;
if(sscanf(params, "ix", family, color))
{
SendClientMessageEx(playerid, COLOR_GRAD1, "USAGE: /setgangcolor [Familyid] [Hex Color]");
return 1;
}
if(family < 0 || family > 14) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Gang ID.");

if(FamilyInfo[family][FamilyTaken] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " That gang isn't being used.");
return 1;
}
FamilyInfo[family][FamilyBandana] = params;
format(string, sizeof(string), "AdmCmd: %s has set gang ID %d's bandana to '%x'.", GetPlayerNameEx(playerid), family, color);
ABroadCast(COLOR_LIGHTRED, string, 1);
}
return 1;
}
Reply


Messages In This Thread
problem with bandan - by IggyKlipz - 24.05.2017, 10:00
Re: problem with bandan - by rockhopper - 24.05.2017, 10:25
Re: problem with bandan - by IggyKlipz - 24.05.2017, 13:34
Re: problem with bandan - by rockhopper - 24.05.2017, 13:40
Re: problem with bandan - by Abagail - 24.05.2017, 13:44
Re: problem with bandan - by IggyKlipz - 24.05.2017, 13:56
Re: problem with bandan - by JasonRiggs - 24.05.2017, 15:11
Re: problem with bandan - by IggyKlipz - 24.05.2017, 18:59
Re: problem with bandan - by JasonRiggs - 24.05.2017, 19:01
Re: problem with bandan - by IggyKlipz - 24.05.2017, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)