Jump to content
  • 0

pomoc Teamkill


NurofeN-Cz

Dotaz

Zdravim. Jak uz vetsina z vas vi, delam cw/tg mod a udelal jsem si do TD total score: 0:0 aby sme nemuseli scitat.. :d Ale kdyz jsem pridal do onplayerdeath aby se to pocitalo tak mi to nepocita vubec (totalscore) ukazu vam jak to mam.

if(gTeam[killerid]== 1) {

if(gTeam[playerid]==1){

SendClientMessageToAll(COLOR_RED, "( ! ) Team (Red) udělal TeamKill, proto teamu (Green) byl přičten 1bod.");

scoreg +=1;

teamkill[killerid]++;

}else if(gTeam[playerid]==2){

scorer +=1; ///normal, score kola ktere ma 30 bodu.

scorerrr +=1; //total score

}else if(gTeam[playerid]==3){

scorer +=1; //normal, score kola ktere ma 30 bodu.

scorerrr +=1; //totalscore

}

}

if(gTeam[killerid]== 2) {

if(gTeam[playerid]==2){

SendClientMessageToAll(COLOR_GREEN, "( ! ) Team (Green) udělal TeamKill, proto teamu (Red) byl přičten 1bod.");

scorer +=1;

teamkill[killerid]++;

}else if(gTeam[playerid]==1){

scoreg +=1; //normal, score kola ktere ma 30 bodu.

scoreggg +=1; //total score

}else if(gTeam[playerid]==3){

scoreg +=1; //normal, score kola ktere ma 30 bodu.

scoreggg +=1; // total score

}

}

 

Edit: Už to počíta, ale jen kladny killy nikoliv Teamkilly :/ (Takze napr: hrac z teamu red da teamkill a teamu green se nic nepricte.

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

skús

if(gTeam[killerid]== 1 && gTeam[playerid]== 1) {
SendClientMessageToAll(COLOR_RED, "( ! ) Team (Red) udilal TeamKill, proto teamu (Green) byl poieten 1bod.");
scoreg++;
teamkill[killerid]++;
}

else if(gTeam[killerid]== 1 && gTeam[playerid]==2){
scorer++;
scorerrr++;
}
else if(gTeam[killerid]== 1 && gTeam[playerid]==3){
scorer++;
scorerrr++;
}


if(gTeam[killerid]== 2 && gTeam[playerid]==2) {
SendClientMessageToAll(COLOR_GREEN, "( ! ) Team (Green) udilal TeamKill, proto teamu (Red) byl poieten 1bod.");
scorer++;
teamkill[killerid]++;
}

else if(gTeam[killerid]== 2 && gTeam[playerid]==1){
scoreg++; 
scoreggg++;
}

else if(gTeam[killerid]== 2 && gTeam[playerid]==3){
scoreg++;
scoreggg++; 
}

Link to comment
Share on other sites

  • 0

ja idem tam

 

-- úte 21. zář 2010 18:14:18 --

 

:d

nedal si sem

if(gTeam[killerid]== 1 && gTeam[playerid]== 1) {

SendClientMessageToAll(COLOR_RED, "( ! ) Team (Red) udilal TeamKill, proto teamu (Green) byl poieten 1bod.");

scoreg++;

teamkill[killerid]++;

scoreggg++;

}

 

if(gTeam[killerid]== 2 && gTeam[playerid]==2) {

SendClientMessageToAll(COLOR_GREEN, "( ! ) Team (Green) udilal TeamKill, proto teamu (Red) byl poieten 1bod.");

scorer++;

teamkill[killerid]++;

scorerrr++;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...