This topic was marked solved by its starter, on September 17th, 06:43 PM
Cubans vs Haitians . Score

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 353
I am gamer, programmer and hacker. Try to find me!
xD

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 373

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 353
I am gamer, programmer and hacker. Try to find me!
xD

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 373
Re: Cubans vs Haitians . Score
« Reply #33,  »
hmm i don't know that line server is showing error which i gave  u in screen short.

line 3 i think.

but ur script look like there is no bug but how its showing error?

Thomas

  • Newbie
  • Posts: 4
The BIG[H] is back xD.

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 373

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 353
I am gamer, programmer and hacker. Try to find me!
xD

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 373
Re: Cubans vs Haitians . Score
« Reply #38,  »Last edited
i removed some thing from OnPlayerKill . its works how?

this is works for me

Code: [Select]
function onPlayerKill( killer,player, reason, bodypart )
{
  for(local i=0; i< =GetMaxPlayers();i++)
  {
   local plr = FindPlayer(i);
   if(plr) SendDataToClient(plr, 1, "1");
  }
  for(local i= 0; i< =GetMaxPlayers();i++)
  {
   local plr = FindPlayer(i);
   if(plr) SendDataToClient(plr, 2, "1");
}
}
 
Re: Cubans vs Haitians . Score
« Reply #39,  »Last edited
Code: [Select]
function onPlayerKill( killer,player, reason, bodypart )
{
if ( (player.Skin == 85) || (player.Skin ==86 ) )
{
Message(" [#CCFF00] [Cuban Team] Got a Score by Killing Haitian Player +1 ");
for(local i=0;i<=GetMaxPlayers();i++)
{
local plr = FindPlayer(i);
if(plr) SendDataToClient(plr, 1, "1");
}
}
if ( (player.Skin == 83) || (player.Skin ==84 ) )
{
Message(" [#00cc00] [Haitian Team] Got a Score by Killing Cuban Player +1 ");
for(local i=0;i<=GetMaxPlayers();i++)
{
local plr = FindPlayer(i);
if(plr) SendDataToClient(plr, 2, "1");
}
}
if ( Stats[ player.ID ].AntiSP )
 {
  killer.Health = 0;
  Message( "[#00de00]Information: [#fbf3f3]" + killer.Name + " Have Been Killed. Reason: Spawn-Kill." );
 
}
else
{
player.PlaySound( 50015);
 stats[ player.ID ].kills++;
 inccash( player );
 stats[ killer.ID ].deaths++;
 deccash( killer );
  KillingSpree.IsSpree( killer, player, reason );
Message( "[#1FFFF9]>> " + killer.Name + "[#FFF11B] killed [#FF0000] " + player.Name + "[#FFF11B] Weapon: [[#6BFF46]" + GetWeaponName( reason ) + "[#FFF11B]] [#FFF11B]Ping:[#1FFFF9][" + killer.Ping + "]" );
}
}
Fixed