Cubans vs Haitians . Score

Started by =RK=MarineForce, Sep 08, 2018, 08:29 AM

Previous topic - Next topic

umar4911

Quote from: =RK=MarineForce on Sep 11, 2018, 02:10 PMOKKKKKKKK

https://ibb.co/fwchC9
now give the code it has error and mention the time number that has error.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

=RK=MarineForce


umar4911

RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

=RK=MarineForce

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

for f sakes, use switch(player.Skin) where possible.


=RK=MarineForce

dump* no work thanks for ur help

umar4911

Quote from: =RK=MarineForce on Sep 14, 2018, 10:34 AMdump* no work thanks for ur help
no work? You are not providing complete details of the error. It's your mistake
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

=RK=MarineForce

#38
i removed some thing from OnPlayerKill . its works how?

this is works for me

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");
}
}
 

=RK=MarineForce

#39
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