public OnPlayerDeath(playerid, killerid, reason){new szin = GetPlayerColor(killerid); if(IsPlayerPolice(playerid) && IsPlayerCivil(killerid)){SetPlayerColor(killerid, COLOR_RED);}if(IsPlayerPolice(killerid) && IsPlayerCivil(playerid)){ if(szin == COLOR_RED){ SendClientMessage(playerid,COLOR_RED,\"Börtönbe kerültél, 1 percre!\"); SetPlayerPos(playerid, 264.8763,81.9862,1001.0390); SetPlayerInterior(playerid, 6); SetTimerEx(\"jail\", 1*60000, false, \"i\", playerid);}else{}} if(IsPlayerPolice(playerid) && IsPlayerPolice(killerid)){if(rendorkill[killerid] == 0){ rendorkill[killerid] = 1; SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, a következõnél kick!(1/2)\");}else if(rendorkill[killerid] == 1){ SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, kickelve lettél!(2/2)\"); Kick(killerid);}}return 1;}
Aha, de konkrétan mi nem mûködik ebben? Én nem látok benne bakit...
stock IsPlayerPolice(playerid){if(gTeam[playerid] == TEAM_ZSARU1) {return 1;}if(gTeam[playerid] == TEAM_ZSARU2) {return 1;}if(gTeam[playerid] == TEAM_ZSARU3) {return 1;}if(gTeam[playerid] == TEAM_ZSARU4) {return 1;}return 0;}stock IsPlayerCivil(playerid) {if(gTeam[playerid] == TEAM_CIVIL1) {return 1;}if(gTeam[playerid] == TEAM_CIVIL2) {return 1;}if(gTeam[playerid] == TEAM_CIVIL3) {return 1;}if(gTeam[playerid] == TEAM_CIVIL4) {return 1;}return 0;}
public OnPlayerDeath(playerid, killerid, reason){ new szin = GetPlayerColor(killerid); if(IsPlayerPolice(playerid) && IsPlayerCivil(killerid)) { SetPlayerColor(killerid, COLOR_RED); } else if(IsPlayerPolice(killerid) && IsPlayerCivil(playerid)) { if(szin == COLOR_RED) { SendClientMessage(playerid,COLOR_RED,\"Börtönbe kerültél, 1 percre!\"); SetPlayerPos(playerid, 264.8763,81.9862,1001.0390); SetPlayerInterior(playerid, 6); SetTimerEx(\"jail\", 1*60000, false, \"i\", playerid); } else { } } else if(IsPlayerPolice(playerid) && IsPlayerPolice(killerid)) { if(rendorkill[killerid] == 0) { rendorkill[killerid] = 1; SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, a következõnél kick!(1/2)\"); } else if(rendorkill[killerid] == 1) { SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, kickelve lettél!(2/2)\"); Kick(killerid); } } return 1;}
public OnPlayerDeath(playerid, killerid, reason){if(IsPlayerCivil(killerid)) {SetPlayerColor(killerid, COLOR_RED);if(!IsPlayerPolice(playerid)) return rendortolt[playerid] = 1;}else if(IsPlayerPolice(killerid) && IsPlayerCivil(playerid)) {if(rendortolt[playerid] == 1){ SendClientMessage(playerid,COLOR_RED,\"Börtönbe kerültél, 1 percre!\"); SetPlayerPos(playerid, 264.8763,81.9862,1001.0390); SetPlayerInterior(playerid, 6); SetTimerEx(\"jail\", 1*60000, false, \"i\", playerid);} else {} }else if(IsPlayerPolice(playerid) && IsPlayerPolice(killerid)) {if(rendorkill[killerid] == 0) { rendorkill[killerid] = 1; SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, a következõnél kick!(1/2)\"); } else if(rendorkill[killerid] == 1) { SendClientMessage(killerid,0xFFFF00AA,\"TeamKill, kickelve lettél!(2/2)\"); Kick(killerid); } } return 1;}