Kill register
#1

Hello, need a little help or more like 'ideas'.
so i'm using this nevada bomber script: https://sampforum.blast.hk/showthread.php?tid=335514
is there a way to actually get a kill like score n deathlog etc when you kill someone using the bomber?
i tried doing the following

PHP Code:
//under the command
        
GetPointZPos(XYZ);
        
MoveObject(bomb[playerid],X,Y,Z,100.0,A,0.0,0.0);
        
CreateExplosion(X,Y,Z,10,20.0);
        new 
Float:xFloat:yFloat:z;
        for(new 
ii<MAX_PLAYERSi++)
        {
        if(
IsPlayerInRangeOfPoint(i5.0xyz))
        {
        
bomberid=playerid;
        
targetedplayer[i]=1;
        }
        }
// under OnPlayerTakeDamage
if(targetedplayer[playerid]==&& issuerid == INVALID_PLAYER_ID)
    {
     
issuerid=bomberid;
    } 
Reply
#2

Yes. You're already checking for, and defining issuerid, so just use that together with
pawn Code:
GetPlayerScore();
SetPlayerScore();
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)