#1

How can I make Vehicle, Helicopter Blades, Explosion, Drowned, Splat count as a death count?
Reply
#2

if player died. killed got a score right? with any types of killing
Reply
#3

It only gives kills/deaths when you kill a player or die by a player.

Nothing with those I stated above ^
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if (killerid == INVALID_PLAYER_ID)
    {
          // Player died, but there's no killer (explosion, splat, drown, /kill command)...
    }
    return 1;
}
Reply
#5

do I need to add inside the brackets or?
Reply
#6

Replace the comment with the functions, what will happen if player died BUT there's no killer.
Reply
#7

so when a vehicle is broken down you want the player to get a score? if im wrong please explain
Reply
#8

I dont understand man what I have to put inside i tried several ways but errors or it wont work
Reply
#9

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if (killerid == INVALID_PLAYER_ID)
    {
          // Put in -HERE- what will happen when a player dies BUT there is NO KILLER. So he died from
          // ¬SPLAT, ¬EXPLOSION, ¬DROWN.
    }
    return 1;
}
Reply
#10

Okay I got it working.

Thanks.

I have one question, the killerid which kills a player with a helicopter, vehicle, how can I give them a kill count?

I've done this

pawn Код:
if (killerid == INVALID_PLAYER_ID)
    {
        PInfo[playerid][Deaths]++;
    }
so I tried this

pawn Код:
if (killerid == INVALID_PLAYER_ID)
    {
            PInfo[playerid][Kills]++;
        PInfo[playerid][Deaths]++;
    }
but that will raise my kill count when I drown or fall too, so how to avoid that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)