[Pomoc] pomoc oko opreme org

Započeo [BE:RP]Dzoni, April 25, 2013, 15:28:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Dragon Fire v2.4.3
Detaljan opis problema: Ocu da dodam opremu, a neznam kako pa sam ja to na svoju ruku uradio pa je to ispalo ovako(dole u kodu) . E sad kad udjem IG kucam /akcija pa /equip e sad kad kucam /equip pojavi mi se dijalog i ponudi mi sta da biram ja to izaberem i ne pojavljuje mi se nista,cak ni kad . Molim za pomoc
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):      

CMD:akcija(playerid, params[]) // By DraGoN
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 19  || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 6  || PlayerInfo[playerid][pLeader] == 6  || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16
|| PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 5  || PlayerInfo[playerid][pLeader] == 5
|| PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13
|| PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25 || PlayerInfo[playerid][pMember] == 7  || PlayerInfo[playerid][pLeader] == 7)
{
if(NaAkciji[playerid] == 1)
{
NaAkciji[playerid] = 0;
SafeResetPlayerWeapons(playerid);
SCM(playerid,COLOR_GREY,"** Niste vise na akciji.");
}
else if(NaAkciji[playerid] == 0)
{
NaAkciji[playerid] = 1;
SCM(playerid,COLOR_GREY,"** Sada mozete uzeti opremu.");
}
}
}
return 1;
}

CMD:equip(playerid, params[]) // By DraGoN
{
if(IsPlayerConnected(playerid))
{
new string[128],sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername,sizeof(sendername));
if((PlayerInfo[playerid][pMember] == 19  ||  PlayerInfo[playerid][pLeader] == 19) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
|| (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) && IsPlayerInRangeOfPoint(playerid, 2,1271.4515,-796.2720,1084.1719)
|| (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) && IsPlayerInRangeOfPoint(playerid, 2,2556.5193,-1305.2424,1060.9844)
|| (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
|| (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
     || (PlayerInfo[playerid][pMember] == 13 ||  PlayerInfo[playerid][pLeader] == 13) && IsPlayerInRangeOfPoint(playerid, 2,677.8940,-462.3289,-25.6172)
|| (PlayerInfo[playerid][pMember] == 16 ||  PlayerInfo[playerid][pLeader] == 16) && IsPlayerInRangeOfPoint(playerid, 2,441.7570,1411.0492,1084.3047)
|| (PlayerInfo[playerid][pMember] == 5 ||  PlayerInfo[playerid][pLeader] == 5) && IsPlayerInRangeOfPoint(playerid, 2,2375.0317,-1127.6121,1050.8750)
|| (PlayerInfo[playerid][pMember] == 24 ||  PlayerInfo[playerid][pLeader] == 24) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101))
{
if(NaAkciji[playerid] == 1)
{
new sapdequip[] = "1\tAK47\n2\tMP5\n3\tAK47 i MP5\n4\tCombat\n5\tArmor";
ShowPlayerDialog(playerid,53,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
return 1;
}
else
{
SCM(playerid,COLOR_GREY,"** Morate kucajti /akcija da bi uzeli oruzje.");
return 1;
}
}
if((PlayerInfo[playerid][pMember] == 25 ||  PlayerInfo[playerid][pLeader] == 25) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
|| (PlayerInfo[playerid][pMember] == 20 ||  PlayerInfo[playerid][pLeader] == 20) && IsPlayerInRangeOfPoint(playerid, 2,267.1542,1294.8147,1080.2578)
|| (PlayerInfo[playerid][pMember] == 13 ||  PlayerInfo[playerid][pLeader] == 13) && IsPlayerInRangeOfPoint(playerid, 2,677.8940,-462.3289,-25.6172)
|| (PlayerInfo[playerid][pMember] == 16 ||  PlayerInfo[playerid][pLeader] == 16) && IsPlayerInRangeOfPoint(playerid, 2,441.7570,1411.0492,1084.3047)
|| (PlayerInfo[playerid][pMember] == 5 ||  PlayerInfo[playerid][pLeader] == 5) && IsPlayerInRangeOfPoint(playerid, 2,2375.0317,-1127.6121,1050.8750))
{
if(NaAkciji[playerid] == 1)
{
if((PlayerInfo[playerid][pMember] == 20 ||  PlayerInfo[playerid][pLeader] == 20))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
else if((PlayerInfo[playerid][pMember] == 25 ||  PlayerInfo[playerid][pLeader] == 25))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5\n4\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
                else if((PlayerInfo[playerid][pMember] == 16 ||  PlayerInfo[playerid][pLeader] == 16))
{
new sapdequip[] = "1\tM4\n2\tMP5\n3\tM4 i MP5\n4\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
return 1;
}
else
{
SCM(playerid,COLOR_GREY,"** Morate kucajti /akcija da bi uzeli oruzje.");
return 1;
}
}
if(PlayerInfo[playerid][pDuty] == 0)
{
SCM(playerid,COLOR_GREY,"** Niste na duznosti (/duty)!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 6, 257.1108,78.0250,1003.6406))//SAPD Lockers
{
if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pMember] != 22 && PlayerInfo[playerid][pLeader] != 22)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the SAPD");
return 1;
}
new sapdequip[] = "1\tCadet Patrol\n2\tOfficer Patrol\n3\tDetektiv Patrol\n4\tMotorcyclist Patrol\n5\tStandard SWAT\n6\tMedium SWAT\n7\tHeavy SWAT\n8\tSharpshooter SWAT\n9\tArmour+Health\n10\tCeremonial Uniform\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,50,DIALOG_STYLE_LIST,"List of Equips:",sapdequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
else if(IsPlayerInRangeOfPoint(playerid, 6, 223.6328,186.8251,1003.0313))//FBI Lockers (Library)
{
if(PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the FBI");
return 1;
}
new fbiequip[] = "1\tCadet Equipment\n2\tAgent Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Tactical\n6\tMedium Tactical\n7\tHeavy Tactical\n8\tSharpshooter Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,51,DIALOG_STYLE_LIST,"List of Equips:",fbiequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
else if(IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188))//Army Lockers
{
if(PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3)
{
SCM(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");
return 1;
}
new armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tSniper Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,52,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Izaberite","Otkazi");
SCM(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /equip %d",d,m,y,h,mi,s,sendername, params);
CommandLog(string);
}
return 1;
}

All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

jel imas ondialogresponse
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

samo mi ovo stoji kad idem na ctrl+f

}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

da ali za ostale org nemam to ,normalno mi radi,a  za ove koje na modu ima a nemaju opremu ja dodajem i nece . Zato trazim pomoc kako sta ? :)
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Citat: NZirojevic poslato April 25, 2013, 15:42:55 POSLE PODNE
da ali za ostale org nemam to ,normalno mi radi,a  za ove koje na modu ima a nemaju opremu ja dodajem i nece . Zato trazim pomoc kako sta ? :)

u toj tvojoj komandi samo prikazuje dialog, moras pod taj ondialogresponse dodat taj dialog koi ce igracu dat oruzje i oduzet novac i sta si vec stavio..

http://wiki.sa-mp.com/wiki/OnDialogResponse
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

koji stavljam ovaj treci ? (DIALOG_STYLE_LIST)
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;


mozete mi uradit jednu da vidim kako posto mi je malo nejasno ovo,izgubio sam se skoz :) ?
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;

Jel dobro ?

}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == DIALOG_WEAPONS)
    {
        if(response) // If they clicked 'Select' or double-clicked a weapon
        {
            // Give them the weapon
            if(listitem == 0) // They selected the first item - AK-47
            {
                GivePlayerWeapon(playerid, WEAPON_AK47 , 120); // Give them a AK-47
            }
            if(listitem == 1) // They selected the second item - MP5
            {
                GivePlayerWeapon(playerid, WEAPON_MP5, 120); // Give them an MP5
            }
            if(listitem == 2) // They selected the third item - Desert Eagle
            {
                GivePlayerWeapon(playerid, WEAPON_M4 , 120); // Give them a Combat Shotgun
            }
            if(listitem == 3) // They selected the third item - M4
            {
                GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 20); // Give them a Combat Shotgun
}
            if(listitem == 4) // They selected the third item - Armour
            {
                SetPlayerArmour(playerid, 100.0);
}
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }

    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
All for one gamemode :
http://forum.sa-mp.com/showthread.php?t=283602

www.Game-State.eu" style="border-style: none;