Rimmon Posted May 5, 2012 Report Share Posted May 5, 2012 Deci fac un GM COD si am nevoie sa se salveze death-urileSi 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 nudeci pot sa mor de cateva ori cand dau /stats tot 0 am Massari e curva mea Link to comment Share on other sites More sharing options...
WanTeD Posted May 6, 2012 Report Share Posted May 6, 2012 [pawn]public OnPlayerDeath( playerid, killerid, reason ){ PlayerInfo[ playerid ][ Deaths ]++; if( IsPlayerConnected( killerid ) && killerid != INVALID_PLAYER_ID ) { PlayerInfo[ killerid ][ Kills ]++; } return ( 1 );}[/pawn] Link to comment Share on other sites More sharing options...
Rimmon Posted May 6, 2012 Author Report Share Posted May 6, 2012 Mersi acum merge ;) Massari e curva mea Link to comment Share on other sites More sharing options...
Question
Rimmon
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
Link to comment
Share on other sites
2 answers to this question
Recommended Posts