Jump to content

Question

Posted

Deci fac un GM COD si am nevoie sa se salveze death-urile

Si am pus asa la OnPlayerDeath

[pawn]public OnPlayerDeath(playerid, killerid, reason)

{

PlayerInfo[killerid][Kills] ++;

PlayerInfo[playerid][Deaths] ++ ;

return 1;

}[/pawn]

Killurile se pun dar deathurile nu

deci pot sa mor de cateva ori cand dau /stats tot 0 am

Massari e curva mea

2 answers to this question

Recommended Posts

Posted

[pawn]

public OnPlayerDeath( playerid, killerid, reason )

{

    PlayerInfo[ playerid ][ Deaths ]++;

if( IsPlayerConnected( killerid ) && killerid != INVALID_PLAYER_ID )

{

      PlayerInfo[ killerid ][ Kills ]++;

    }

return ( 1 );

}

[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.