Format help.
#5

Quote:
Originally Posted by Jafet_Macario
Посмотреть сообщение
Second:
PHP код:
public OnPlayerDeath(playerid,killerid,reason)
{
    if(
IsPlayerConnected(killerid)) 
    {
        new 
killcash random(1500);
        new 
string[128], name[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        
GivePlayerMoney(killeridkillcash);
        
GivePlayerMoney(playerid, -killcash);
        
format(stringsizeof(string), "You just killed %s and looted $%d from the them."namekillcash);
        
SendClientMessage(killeridstring);
    }
    return 
1;

he want to send it to the killer(ho killed this player) not ho were killed... :\
Reply


Messages In This Thread
Format help. - by Lilrebel17 - 09.09.2011, 17:12
Re: Format help. - by Kaperstone - 09.09.2011, 17:16
Re: Format help. - by Jafet_Macario - 09.09.2011, 17:19
Re: Format help. - by Lilrebel17 - 09.09.2011, 17:30
Re: Format help. - by Kaperstone - 09.09.2011, 17:43
Re: Format help. - by Jafet_Macario - 09.09.2011, 17:47

Forum Jump:


Users browsing this thread: 4 Guest(s)