PnPlayerDaeth...
{
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
{
Kick(killerid); //Kick the team killer
return 1;
}
}
{
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
{
SendDeathMessage(killerid,playerid,reason);//Remove if you dont want team kills to show
Kick(killerid); //Kick the team killer
}
else
{
SendDeathMessage(killerid,playerid,reason);
}
return 1;
}
public OnPlayerDeath { if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid)) { Kick(killerid); //Kick the team killer return 1; } }
public OnPlayerDeath(playerid, killerid)
{
//Some stuff over here... SendDeathMessage and other things
if(gTeam[killerid] > 6 && gTeam[playerid] > 0)
{
new string[128];
new wantedlevel = GetPlayerWantedLevel(killerid);
SetPlayerWantedLevel(killerid, wantedlevel +10);
SendClientMessage(playerid, COLOR_RED, "Murder!, You killed a cop or whatever!");
format(string, sizeof(string), "Wanted Level %i", wantedlevel);
SendClientMessage(killerid, GetPlayerColor(killerid), string);
return 1;
}
else
{
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
{
new string[128];
SendClientMessage(playerid, COLOR_ERROR, "(TEAM KILLER)");
PlayerData[killerid][TeamKills] ++;
if(PlayerData[killerid][TeamKills] == 3)
{
PlayerData[killerid][TeamKills] = 0;
Kick(killerid);
return 1;
}
}
}
return 1;
}
Ahh..You mean ??
PS: Is this is how you gained your post count? Posting "stupid" / "useless" posts? -.- "Grow Up People FFS" |
OnTopic: Oh now it makes sence i just seen 1 page with 1 un-releated comment..my bad..
OffTopic: What exactly is the problem? And post all the code that has the problems.. |
public OnPlayerDeath(playerid, killerid)
{
//Some stuff over here... SendDeathMessage and other things
if(gTeam[killerid] > 6 && gTeam[playerid] > 0)
{
new string[128];
new wantedlevel = GetPlayerWantedLevel(killerid);
SetPlayerWantedLevel(killerid, wantedlevel +10);
SendClientMessage(playerid, COLOR_RED, "Murder!, You killed a cop or whatever!");
format(string, sizeof(string), "Wanted Level %i", wantedlevel);
SendClientMessage(killerid, GetPlayerColor(killerid), string);
return 1;
}
else
{
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
{
new string[128];
SendClientMessage(playerid, COLOR_ERROR, "(TEAM KILLER)");
PlayerData[killerid][TeamKills] ++;
if(PlayerData[killerid][TeamKills] == 3)
{
PlayerData[killerid][TeamKills] = 0;
Kick(killerid);
return 1;
}
}
}
return 1;
}
SendClientMessage(playerid, COLOR_ERROR, "(TEAM KILLER)");
SendClientMessage(killerid, COLOR_ERROR, "(TEAM KILLER)");
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
if((IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid)) && ((IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid)))