22.07.2011, 22:01
Hey i have police armory and there is case 1 with some guns and if i choose gun case 2, gun's from case 1 removes, but i want that it won't delete
look
Whats wrong, thx
look
pawn Код:
if(PlayerToPoint(100, playerid, 222.6434,115.1870,999.0156))//centerpoint 24-7
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /equip [item number]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ LTSPD Police Armory _______|");
SendClientMessage(playerid, COLOR_GRAD1, "| 1: Intern Surveillance 2: Agent Surveillance");
SendClientMessage(playerid, COLOR_GRAD2, "| 3: Surveillance Camera 4: Covert Surveillance");
SendClientMessage(playerid, COLOR_GRAD3, "| 5: Standard Tactical 6: Medium Tactical");
SendClientMessage(playerid, COLOR_GRAD4, "| 7: Heavy Tactical 8: Sharpshooter Tactical");
SendClientMessage(playerid, COLOR_GRAD5, "| 9: Equip Armor+health 10: Night Vision Goggles");
SendClientMessage(playerid, COLOR_GRAD5, "| 11: Thermal Goggles 12: Default");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 43, 100);
SafeGivePlayerWeapon(playerid, 3, 1);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard intern equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}