a small question
#1

i made a nuke command.. which creates explode..

but...

i want to know that if the other player dies will it give score to the player who used nuke command?

if No then how can i do it?
Reply
#2

hmmm
pawn Код:
new Float: Health, v;
    v = 0;
      forreach(Player,i)
     {
         GetPlayerHealth(i,Health);
          if(Health == 0)
         {
             v++;
             SetPlayerScore(playerid,GetPlayerScore(playerid)+v);
         }
      }
Reply
#3

its foreach i guess :S .. fail type gave me error.
Reply
#4

yeah sorry
fixed
pawn Код:
new Float: Health, v;
              new Float:X,Float:Y,Float:Z;
                GetPlayerPos(playerid,X,Y,Z);
    v = 0;
      foreach(Player,i)
     {
         GetPlayerHealth(i,Health);
          if(Health == 0)
         {
             if(IsPlayerInRangeOfPoint(i, 40, X,Y,Z) )
             {
             v++;
             SetPlayerScore(playerid,GetPlayerScore(playerid)+v);
            }
         }
      }
add this to your command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)