13.03.2013, 20:16
i have create a new wanted system and i have a little problem. If, example i am in Faction Number 5 i killed my partner, i receive 1wanted point, but in script is isn't writed to receive 1 wantedpoints. Check this
I apologize if there are spelling mistakes
Код:
if(PlayerInfo[killerid][pMembru] == 1 || PlayerInfo[killerid][pLider] == 1) { if(PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10) return 1; } if(PlayerInfo[killerid][pMembru] == 2 || PlayerInfo[killerid][pLider] == 2) { if(PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10) return 1; } //-----------------------------------The Forelli Family WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 4 || PlayerInfo[killerid][pLider] == 4) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------The Sindacco Family WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 5 || PlayerInfo[killerid][pLider] == 5) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------The Leone Family WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 6 || PlayerInfo[killerid][pLider] == 6) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------Tow Truck Company WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 3 || PlayerInfo[killerid][pLider] == 3) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------News Reporters WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 9 || PlayerInfo[killerid][pLider] == 9) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------School Instructors WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 10 || PlayerInfo[killerid][pLider] == 10) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------Hitman Agency WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 8 || PlayerInfo[killerid][pLider] == 8) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1; } //-----------------------------------CIVILS WANTED---------------------------------// if(PlayerInfo[killerid][pMembru] == 0 || PlayerInfo[killerid][pLider] == 0) { if(PlayerInfo[playerid][pMembru] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembru] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMembru] == 3 || PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMembru] == 4 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 7 || PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pMembru] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembru] == 9 || PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pMembru] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembru] == 0 || PlayerInfo[playerid][pLider] == 0) WantedPoints[killerid] += 1; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } return 1;