Detaljan opis problema: Imam problem.Ovde nema duty za FBI,da malo bolje pojasnim...ja sam u fbi,kada idem na /duty pise mi nisi policajac.Znaci u ovoj komandi nema za fbi.Probavao sam iz drugih gamemodova da ubacim,ne uspevam nikako.Kako ovde da dodam da kada sam u fbi da mogu /duty.Joj ne znam bas kako da vam objasnim.Jednostavno u ovoj komandi nema /duty za fbi !Moze mi neko pomoci kako to da uradim ?
Dio skripte:
if(strcmp(cmd, "/duty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo == 1 || PlayerInfo == 1)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo != 255)
{
if(OnDuty==0)
{
format(string, sizeof(string), "* Officer %s je izvadio znacku i oruzje iz svog ormarica.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 24, 70);
JB_GivePlayerWeapon(playerid, 3, 0);
OnDuty = 1;
}
else if(OnDuty==1)
{
format(string, sizeof(string), "* Officer %s stavlja znacku i oruzje u svog ormaric.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
JB_GivePlayerWeapon(playerid, 23, 150);
JB_GivePlayerWeapon(playerid, 5, 0);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo == 4||PlayerInfo == 4)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
JobDuty = 0;
Medics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
JobDuty = 1;
Medics += 1;
}
}
else if(PlayerInfo == 7)
{
if(JobDuty == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
JobDuty = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
JobDuty = 1;
Mechanics += 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}