public OnPlayerDeath(playerid, killerid, reason)
{
TeamKills[gTeam[killerid]]++;
GivePlayerMoney(killerid, 500);
GivePlayerMoney(playerid, -250);
GameTextForPlayer(killerid, "~r~+500", 500, 1);
GameTextForPlayer(playerid, "~r~-250", 500, 1);
SetPlayerScore(playerid, GetPlayerScore( playerid ) -1 );
SetPlayerScore(killerid, GetPlayerScore( killerid ) +1 );
SendDeathMessage(killerid, playerid, reason);
SendClientMessage(playerid,0xFF0000FF, "You have been killed");
GameTextForPlayer(playerid,"~r~You have been killed!", 3000, 3);
}
It's becouse u already have GameTextForPlayer(playerid, "~r~-250", 500, 1); that game text showing to player.. Chose one of them or set timer to show other one
|
public OnPlayerDeath(playerid, killerid, reason)
{
TeamKills[gTeam[killerid]]++;
GivePlayerMoney(killerid, 500);
GivePlayerMoney(playerid, -250);
GameTextForPlayer(killerid, "~r~+500", 500, 1);
GameTextForPlayer(playerid, "~r~-250~n~You have been killed!", 500, 1);
SetPlayerScore(playerid, GetPlayerScore( playerid ) -1 );
SetPlayerScore(killerid, GetPlayerScore( killerid ) +1 );
SendDeathMessage(killerid, playerid, reason);
SendClientMessage(playerid,0xFF0000FF, "You have been killed");
}
forward killmessage(playerid); public killmessage(playerid) { GameTextForPlayer(playerid, "~r~You have been killed!", 1000, 1); } public OnPlayerDeath(playerid, killerid, reason) { TeamKills[gTeam[killerid]]++; GivePlayerMoney(killerid, 500); GivePlayerMoney(playerid, -250); GameTextForPlayer(killerid, "~r~+500", 500, 1); GameTextForPlayer(playerid, "~r~You have been killed!", 500, 1); SetTimerEx("killmessage", 600, false, "i", playerid); SetPlayerScore(playerid, GetPlayerScore( playerid ) -1 ); SetPlayerScore(killerid, GetPlayerScore( killerid ) +1 ); SendDeathMessage(killerid, playerid, reason); SendClientMessage(playerid,0xFF0000FF, "You have been killed"); }