11.03.2013, 20:59
Hello, I have decided to wait some time before i make my armory with refill thing etc, and now im wondering if i can just comment the lines i dont need now or will they still be working InGame even that i comment them out? Like this
pawn Код:
if(dialogid == 501)
{
if(response)
{
if (listitem == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] >= 1)
{
/*if(Armory[ARMOUR] > 0)
{*/
SafeSetPlayerArmour(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Takes a new Armour from the armory.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
/*Armory[ARMOUR]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "There isnt any Armour's left, Send after a refill!");*/
}
}
}
}
else if (listitem == 1)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] >= 1)
{
/*if(Armory[MEDKIT] > 0)
{*/
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Takes out a Medical Kit and use it.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
/*Armory[MEDKIT]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "There isnt any Medical Kit's left, Send after a refill!");*/
}
}
}
}
else if (listitem == 2)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
/*if(Armory[MP5] > 0)
{*/
SafeGivePlayerWeapon(playerid, 29, 250);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Takes out a MP5 from the Armory.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
/*Armory[MP5]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "There isnt any MP5 left, Send after a refill!");*/
}
}
}
}
else if (listitem == 3)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
/*if(Armory[SHOTGUN] > 0)
{*/
SafeGivePlayerWeapon(playerid, 25, 150);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Takes out a Shotgun from the Armory.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
/*Armory[SHOTGUN]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "There isnt any Shotgun left, Send after a refill!");*/
}
}
}
}
else if (listitem == 4)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] >= 2)
{
/*if(Armory[SHIELD] > 0)
{*/
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
SendClientMessage(playerid, COLOR_GREY, "* Use /shieldoff if you want to remove the Shield.");
/*Armory[SHIELD]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "There isnt any Shields left, Send after a refill!");*/
}
}
}
}
}
}