24.01.2010, 09:13
Same Result
Take a look
Take a look
Код:
if(!strcmp(cmdtext, "/cabinet", true)) { new weapon,ammo; if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if(PlayerToPoint(5,playerid,2492.9863,-1710.4384,1014.7422)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu1,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { if(PlayerToPoint(5,playerid,2450.9248,-1686.0957,1013.5078)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu4,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { if(PlayerToPoint(5,playerid,969.3714,-49.1117,1001.1172)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu3,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { if(PlayerToPoint(5,playerid,-46.4659,1401.3016,1084.4370)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu6,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { if(PlayerToPoint(5,playerid,224.3502,1081.5187,1084.2031)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu7,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { if(PlayerToPoint(5,playerid,2335.9785,-1136.0712,1050.7101)) { GetPlayerWeaponData(playerid,1,weapon,ammo); if(ammo > 100) { GetPlayerWeaponData(playerid,2,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,4,weapon,ammo); if(ammo > 150) { GetPlayerWeaponData(playerid,3,weapon,ammo); if(ammo > 150) { ShowMenuForPlayer(gunmenu8,playerid); return 1; } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You have to many bullets!"); } } } else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) { if(PlayerToPoint(5,playerid,-1634.2675,-2239.2151,31.4766)) { ShowMenuForPlayer(special,playerid); } } else return SendClientMessage(playerid,COLOR_WHITE,"You are not in a Familly,you don't have a cabinet."); } return 1; }