public SearchingHit(playerid){new string[256];new giveplayer[MAX_PLAYER_NAME];new searchhit = 0;for(new i=0; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(searchhit == 0) { if(PlayerInfo[pHeadValue] > 0 && GotHit == 0 && PlayerInfo[pMember] != { GetPlayerName(i, giveplayer, sizeof(giveplayer)); searchhit = 1; hitfound = 1; hitid = i; for(new k=0; k<MAX_PLAYERS; k++) { if(IsPlayerConnected(k)) { if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == { SendClientMessage(k, COLOR_WHITE, \"|__________________ Bérgyilkos ügynökség __________________|\"); SendClientMessage(k, COLOR_DBLUE, \"*** Bejövo üzenet: Egy kihívás elérheto. ***\"); format(string, sizeof(string), \"Személy: %s ID: %d Vérdíj: %d$\", giveplayer, i, PlayerInfo[pHeadValue]); SendClientMessage(k, COLOR_DBLUE, string); SendClientMessage(k, COLOR_YELLOW, \"Használd a Givehit-et, hogy kioszd valamelyik hitmannek a célszemélyt.\"); SendClientMessage(k, COLOR_WHITE, \"|________________________________________________________|\"); } } } return 0; } } }}if(searchhit == 0){ SendClientMessage(playerid, COLOR_GREY, \" Nincs célszemély!\");}return 0;}[/quote]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(gTeam[playerid] >= 3){ if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {} else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, \"Loptál egy rendorautót!\"); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, \"Loptál egy mentokocsit\"); } }}return 1;}[/quote]Kérlek segítsetek, hogy muködjön másik módba is
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(gTeam[playerid] >= 3){ if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {} else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, \"Loptál egy rendorautót!\"); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, \"Loptál egy mentokocsit\"); } }}return 1;}[/quote]Kérlek segítsetek, hogy muködjön másik módba is