06.06.2012, 00:33
I need some Help , Since Ive been trying to Remove Los santos Fire department On my Script And tried to recreate it into National Guard . Everything is Done cars,duty point ,Interior Gates , Now my problem is the equip Point
Ive been trying to Recreate it Like this but Somehow it doesnt showup , the Lines:
Ps. This is placed into /equip
Other lines
This is what happens
![](/imageshack/img208/8258/naamloossj.png)
This is what shouldt happen
![](/imageshack/img69/518/retestw.png)
[[PS NO this aint already made this is another equip point ....]]
So couldt any 1 help me? or tell me what da hell i did wrong
Ive been trying to Recreate it Like this but Somehow it doesnt showup , the Lines:
Ps. This is placed into /equip
PHP код:
else if(IsPlayerInRangeOfPoint(playerid, 6, 233.5712,124.9033,1003.2188))//Army Lockers
{
if(PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)
{
SendClientMessage(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\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel");
SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
}
PHP код:
if(dialogid == 123123123)
{
if(response)
{
if (listitem == 0)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 1)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 24, 175);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 25, 25);
SafeGivePlayerWeapon(playerid, 41, 200);
SafeGivePlayerWeapon(playerid, 31, 50);
SetPlayerSkin(playerid, 287);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard private equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 1)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
SafeResetPlayerWeapons(playerid);
SetPlayerSkin(playerid, 287);
SafeGivePlayerWeapon(playerid, 41, 300);
SafeGivePlayerWeapon(playerid, 24, 125);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 25, 25);
SafeGivePlayerWeapon(playerid, 31, 150);
SafeGivePlayerWeapon(playerid, 17, 5);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard sergeant equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 2)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 43, 100);
SafeGivePlayerWeapon(playerid, 23, 125);
SafeGivePlayerWeapon(playerid, 4, 1);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has taken a watching equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 3)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 3)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 43, 125);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 23, 150);
SafeGivePlayerWeapon(playerid, 46, 1);
SafeGivePlayerWeapon(playerid, 17, 10);
SafeGivePlayerWeapon(playerid, 34, 50);
OnSpecialFDuty[playerid] = 0;
SetPlayerSkin(playerid, 73); // 191 Female
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has taken the equipment needed for spying operations.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 4)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pSpecialF] >= 1)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 41, 700);
SafeGivePlayerWeapon(playerid, 17, 10);
SafeGivePlayerWeapon(playerid, 29, 175);
SafeGivePlayerWeapon(playerid, 31, 225);
SafeGivePlayerWeapon(playerid, 34, 10);
SafeGivePlayerWeapon(playerid, 46, 1);
SetPlayerSkin(playerid, 179);
OnSpecialFDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has put on a Special Forces uniform and geared up with standard equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 5)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pSpecialF] >= 2)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 175);
SafeGivePlayerWeapon(playerid, 41, 850);
SafeGivePlayerWeapon(playerid, 17, 13);
SafeGivePlayerWeapon(playerid, 29, 200);
SafeGivePlayerWeapon(playerid, 31, 250);
SafeGivePlayerWeapon(playerid, 46, 1);
SafeGivePlayerWeapon(playerid, 34, 15);
SetPlayerSkin(playerid, 179);
OnSpecialFDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has put on a Special Forces uniform and geared up with medium equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 6)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pSpecialF] >= 3)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 200);
SafeGivePlayerWeapon(playerid, 41, 1000);
SafeGivePlayerWeapon(playerid, 16, 5);
SafeGivePlayerWeapon(playerid, 27, 50);
SafeGivePlayerWeapon(playerid, 29, 250);
SafeGivePlayerWeapon(playerid, 31, 300);
SafeGivePlayerWeapon(playerid, 46, 1);
SafeGivePlayerWeapon(playerid, 34, 25);
SafeGivePlayerWeapon(playerid, 36, 3);
SetPlayerSkin(playerid, 179);
OnSpecialFDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has put on a special forces uniform and geared up with heavy equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 7)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pSpecialF] >= 1)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 1200);
SafeGivePlayerWeapon(playerid, 34, 150);
SafeGivePlayerWeapon(playerid, 31, 3000);
SafeGivePlayerWeapon(playerid, 41, 1500);
SafeGivePlayerWeapon(playerid, 36, 5);
SafeGivePlayerWeapon(playerid, 16, 25);
SafeGivePlayerWeapon(playerid, 29, 2500);
SafeGivePlayerWeapon(playerid, 27, 500);
SetPlayerSkin(playerid, 287);
OnSpecialFDuty[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has put on a special forces uniform and geared up with The Heaviest equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 8)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 1)
{
SafeSetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s places on a Kevlar vest and eats some donuts.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 9)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 3)
{
new originalskin = PlayerInfo[playerid][pChar];
SetPlayerSkin(playerid, originalskin);
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 41, 300);
SafeGivePlayerWeapon(playerid, 24, 125);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 25, 25);
SafeGivePlayerWeapon(playerid, 31, 150);
SafeGivePlayerWeapon(playerid, 17, 5);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard sergeant equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 10)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 6)
{
new originalskin = PlayerInfo[playerid][pChar];
SetPlayerSkin(playerid, originalskin);
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 200);
SafeGivePlayerWeapon(playerid, 41, 700);
SafeGivePlayerWeapon(playerid, 16, 3);
SafeGivePlayerWeapon(playerid, 27, 50);
SafeGivePlayerWeapon(playerid, 29, 175);
SafeGivePlayerWeapon(playerid, 31, 250);
SafeGivePlayerWeapon(playerid, 46, 1);
SafeGivePlayerWeapon(playerid, 34, 20);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard sergeant equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
else if (listitem == 11)
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
SetPlayerSkin(playerid, 240);
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 41, 500);
SafeGivePlayerWeapon(playerid, 25, 25);
SafeGivePlayerWeapon(playerid, 29, 75);
SafeGivePlayerWeapon(playerid, 31, 100);
SafeGivePlayerWeapon(playerid, 33, 45);
OnSpecialFDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard Ceremonial Suit.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
}
}
}
}
![](/imageshack/img208/8258/naamloossj.png)
This is what shouldt happen
![](/imageshack/img69/518/retestw.png)
[[PS NO this aint already made this is another equip point ....]]
So couldt any 1 help me? or tell me what da hell i did wrong