Дата: 08.04.2010, Четверг, 15:33:26 | Сообщение # $NUMBER
Группа: Проверенные
Сообщений: 170
Вот весь public SetPlayerWeapons. Куда добавить бейсбольную биту для банды. Code public SetPlayerWeapons(playerid) { if(IsPlayerConnected(playerid)) { SafeResetPlayerWeapons(playerid); if(PlayerInfo[playerid][pJailed] < 1) { if(gTeam[playerid] == 2 || IsACop(playerid)) { SafeGivePlayerWeapon(playerid, 41, 500); //spray SafeGivePlayerWeapon(playerid, 29, 500); //weapon if(OnDuty[playerid] == 1 || PlayerInfo[playerid][pMember] == 2)//Cops & FBI/ATF { SafeGivePlayerWeapon(playerid, 41, 500); //spray SafeGivePlayerWeapon(playerid, 24, 200); SafeGivePlayerWeapon(playerid, 3, 1); if(PlayerInfo[playerid][pChar] == 285)//SWAT { SafeGivePlayerWeapon(playerid, 24, 200); SafeGivePlayerWeapon(playerid, 29, 450); SafeGivePlayerWeapon(playerid, 31, 600); } else if(PlayerInfo[playerid][pChar] == 287)//Army { SafeGivePlayerWeapon(playerid, 24, 200); SafeGivePlayerWeapon(playerid, 29, 450); SafeGivePlayerWeapon(playerid, 31, 500); } } if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard { SafeGivePlayerWeapon(playerid, 24, 200); SafeGivePlayerWeapon(playerid, 31, 600); SafeGivePlayerWeapon(playerid, 29, 600); } } if(gTeam[playerid] >= 3) { SafeGivePlayerWeapon(playerid, 0, 0); } if(PlayerInfo[playerid][pDonateRank] > 0) { if (PlayerInfo[playerid][pGun1] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pAmmo1]); PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pAmmo1] = 0; } if (PlayerInfo[playerid][pGun2] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pAmmo2]); PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pAmmo2] = 0; } if (PlayerInfo[playerid][pGun3] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], PlayerInfo[playerid][pAmmo3]); PlayerInfo[playerid][pGun3] = 0; PlayerInfo[playerid][pAmmo3] = 0; } if (PlayerInfo[playerid][pGun4] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun4], PlayerInfo[playerid][pAmmo4]); PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo4] = 0; } } else { if (PlayerInfo[playerid][pGun1] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pAmmo1]); PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pAmmo1] = 0; } if (PlayerInfo[playerid][pGun2] > 0) { SafeGivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pAmmo2]); PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pAmmo2] = 0; } } } } } Просто пробовал добавить и ничего не получается...Делал вот так: Добавил вот этот код: Code if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//MC-13 { SafeGivePlayerWeapon(playerid, 5, 1); } Добавлял после: Code if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard { SafeGivePlayerWeapon(playerid, 24, 200); SafeGivePlayerWeapon(playerid, 31, 600); SafeGivePlayerWeapon(playerid, 29, 600); } В игру захожу оружие не появляется в руках банды...
|
Дата: 08.04.2010, Четверг, 15:40:00 | Сообщение # $NUMBER
Группа: Пользователи
Сообщений: 132
вот if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard { GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 31, 100); GivePlayerWeapon(playerid, 29, 200); } } if(PlayerInfo[playerid][pMember] == ид банды твоей || PlayerInfo[playerid][pLeader] == ид банды твоей)//National Guard { GivePlayerWeapon(playerid, 5, 1); }
|
Дата: 08.04.2010, Четверг, 15:55:13 | Сообщение # $NUMBER
Группа: Проверенные
Сообщений: 170
чел, спс...Лови плюсик..
|