01.12.2010, 15:50
i have this script and i dont know how to make it work.
For example SendClientMessageToAll( 0xFF0000FF, "%s has been killed by (i dont know how to add the killers name)");
And when it adds a score it doesent save it.
public OnPlayerDeath(playerid, killerid, reason)
{
new player[24];
new killer[24];
GetPlayerName(playerid, player, sizeof(player));
GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
For example SendClientMessageToAll( 0xFF0000FF, "%s has been killed by (i dont know how to add the killers name)");
And when it adds a score it doesent save it.
public OnPlayerDeath(playerid, killerid, reason)
{
new player[24];
new killer[24];
GetPlayerName(playerid, player, sizeof(player));
GetPlayerName(killerid, killer, sizeof(killer));
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}