Detaljan opis problema: treba mi pomoc oko equipa stavicu sliku dole pa ako moze neko pomoc kako da odradim
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno):http://prntscr.com/azg459
CMD:equip(playerid, params[]) // ByHamZa
{
if(IsPlayerConnected(playerid))
{
new string,sendername;
GetPlayerName(playerid, sendername,sizeof(sendername));
if((PlayerInfo == 19 || PlayerInfo == 19) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101)
|| (PlayerInfo == 6 || PlayerInfo == 6) && IsPlayerInRangeOfPoint(playerid, 2,1271.4515,-796.2720,1084.1719)
|| (PlayerInfo == 15 || PlayerInfo == 15) && IsPlayerInRangeOfPoint(playerid, 2,2556.5193,-1305.2424,1060.9844)
|| (PlayerInfo == 21 || PlayerInfo == 21) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
|| (PlayerInfo == 14 || PlayerInfo == 14) && IsPlayerInRangeOfPoint(playerid, 2,958.2475,-53.6183,1001.1172)
|| (PlayerInfo == 5 || PlayerInfo == 5) && IsPlayerInRangeOfPoint(playerid, 2,1464.4586,-1419.7827,23.1559)
|| (PlayerInfo == 23 || PlayerInfo == 23) && IsPlayerInRangeOfPoint(playerid, 2,2336.7620,-1135.0751,1050.7101))
{
new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
ShowPlayerDialog(playerid,53,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
return 1;
}
if((PlayerInfo == 25 || PlayerInfo == 25) && IsPlayerInRangeOfPoint(playerid, 2,883.3781,-1613.3295,-28.6752)
|| (PlayerInfo == 22 || PlayerInfo == 22) && IsPlayerInRangeOfPoint(playerid, 2,1740.0681,-1889.1855,-8.5223))
{
if((PlayerInfo == 22 || PlayerInfo == 22))
{
new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
ShowPlayerDialog(playerid,59,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
else if((PlayerInfo == 25 || PlayerInfo == 25))
{
new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
ShowPlayerDialog(playerid,59,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
return 1;
}
if((PlayerInfo == 24 || PlayerInfo == 24) && IsPlayerInRangeOfPoint(playerid, 2,31.32,1404.22,1084.42)
|| (PlayerInfo == 20 || PlayerInfo == 20) && IsPlayerInRangeOfPoint(playerid, 2,1740.0613,-1889.4319,-8.5223))
{
if((PlayerInfo == 20 || PlayerInfo == 20))
{
new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
else if((PlayerInfo == 24 || PlayerInfo == 24))
{
new sapdequip[] = "1\tSawnoff\n2\tKokteli\n3\tSniper i Combat\n4\tBombe\n5\tArmor";
ShowPlayerDialog(playerid,54,DIALOG_STYLE_LIST,"Oruzje:",sapdequip,"Izaberite","Otkazi");
}
return 1;
}
if(PlayerInfo == 0)
{
SCM(playerid,COLOR_GREY,"** Niste na duznosti (/duty)!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 6, 1211.3840,-1686.2323,-39.7341))//SAPD Lockers
{
if(PlayerInfo != 1 && PlayerInfo != 1 && PlayerInfo != 22 && PlayerInfo != 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 != 2 && PlayerInfo != 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 != 3 && PlayerInfo != 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 -> /equip %d",d,m,y,h,mi,s,sendername, params);
CommandLog(string);
}
return 1;
}