Death[rep]
#5

Quote:
Originally Posted by admantis
Посмотреть сообщение
pawn Код:
public OnPlayerDeath( playerid, killerid, reason ) {
    if ( killerid != INVALID_PLAYER_ID ) {
        new wepName[32];
        new deathStr[82];
        new killerName[24];
        GetPlayerName( killerid, killerName, 24 );
        GetWeaponName( reason, wepName, 32 );
        format( deathStr, 82, "You were killed by %s using a %s.", killerName );
        SendClientMessage( playerid, -1, deathStr );
    }
   
    return 1;
}
do i do this the way i like?

PHP код:
if ( killerid != INVALID_PLAYER_ID ) {
           new 
deathStr[82];
        new 
killerName[24];
        
GetPlayerNamekilleridkillerName24 );
                
formatdeathStr82"You were killed by %s."killerName );
        
SendClientMessageplayerid, -1deathStr );
    }
    
    return 
1;

Reply


Messages In This Thread
Death[rep] - by Dan_Barocu - 11.03.2012, 22:44
Re: Death[rep] - by Dan_Barocu - 11.03.2012, 22:58
Re: Death[rep] - by admantis - 11.03.2012, 23:05
Re: Death[rep] - by mrskull42 - 11.03.2012, 23:07
Re: Death[rep] - by Dan_Barocu - 11.03.2012, 23:07
Re: Death[rep] - by mrskull42 - 11.03.2012, 23:09
Re: Death[rep] - by Dan_Barocu - 11.03.2012, 23:13
Re: Death[rep] - by Dan_Barocu - 11.03.2012, 23:21
Re: Death[rep] - by Dan_Barocu - 11.03.2012, 23:51

Forum Jump:


Users browsing this thread: 6 Guest(s)