[Pomoc] /Duty

Započeo Darko a.k.a OptX, Jul 02, 2011, 19:16:01 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

id of FBI je 2...

A nista prije ovoga nisam ubacivao.Msm jesam ali nez tacno sta sam ubacivao xD Ali sta god da ubacim odmah idem save,pa compiele.Nista mi ne izbacuje...

EDIT : Dao sam "Eazy_Eye" download od ovog moda,pa neka on proba :S Gm mi se stvarno svidja,extra je ali ima ovaj bug i jos 1 u vezi sa spawnom za PD ali mislim da sam to sredio...
Poslednja Izmena: Jul 02, 2011, 19:59:23 POSLE PODNE od Darko a.k.a OptX
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone

Evo ti nova komanda moze samo FBI da je koristi ..a ne razumem imas problem sa pawnom ??
if(strcmp(cmd, "/dutyfbi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==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[playerid] = 1;
}
else if(OnDuty[playerid]==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[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 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[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}


Citat: Eazy_Eye poslato Jul 02, 2011, 20:00:00 POSLE PODNE
Evo ti nova komanda moze samo FBI da je koristi ..a ne razumem imas problem sa pawnom ??
if(strcmp(cmd, "/dutyfbi", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==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[playerid] = 1;
}
else if(OnDuty[playerid]==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[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   {00CCFF}Street Life Balkan:{FF0000} Nisi u sobi za presvlacenje !");
return 1;
}
}
else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno si na pauzi od svog posla Ljecnika, neces primati pozive za pomoc...");
        JobDuty[playerid] = 0;
        Medics -= 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Trenutno radis kao ljecnik, primat ces pozive od ljudi koji trebaju pomoc.");
        JobDuty[playerid] = 1;
        Medics += 1;
    }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
        JobDuty[playerid] = 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[playerid] = 1;
        Mechanics += 1;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GRAD1, "   {00CCFF}Street Life Balkan:{FF0000} Nisi policajac!");
}
}
return 1;
}



Too hvala,ovo uspeva :D Hvala vam svima na trudu i utrosenom vremenu !!!

Btw nemam problem sa pawnom nego spawnom :P I mislim da je problem ovde vec resen : http://balkan-samp.com/forum/index.php?topic=27681.0



Jos jednom hvala svima !!! Poz,cao
Eazy_Eye - respect !
Moderator - Lock !  :D  :D  :D
Respect : [TG]$--L84S--$,System32,[BD]Gagi_Corleone