Quote:
Originally Posted by Ace155
|
Ty.
I have more 1 problem...when 1 player kill another player ... it don't show textdraw
i have at OnPlayerDeath this...
Код:
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
AccInfo[killerid][Kills]++;
//----------------------------------------------------------------------
//Killing Spree, Best Killing Spree and Others
//----------------------------------------------------------------------
if(AccInfo[killerid][KSpree] != AccInfo[killerid][BKSpree])
{
AccInfo[killerid][KSpree]++;
//------------------------------------------------------------------
PlayerTextDrawHide(killerid, KSpree1[killerid]);
format(string, 128, "~r~Killing Spree: ~y~%d", AccInfo[killerid][KSpree]);
PlayerTextDrawSetString(killerid, KSpree1[killerid], string);
PlayerTextDrawShow(killerid, KSpree1[killerid]);
PlayerTextDrawHide(killerid, KSpree2[killerid]);
format(string, 128, "~y~+1 Score, +500 Cash");
PlayerTextDrawSetString(killerid, KSpree2[killerid], string);
PlayerTextDrawShow(killerid, KSpree2[killerid]);
SetTimerEx("HKTXD", 3000, false, "i", killerid);
//------------------------------------------------------------------
GivePlayerMoney(killerid, 500);
}
else
{
AccInfo[killerid][KSpree]++; AccInfo[killerid][BKSpree]++;
PlayerTextDrawHide(playerid, KSpree1[killerid]);
format(string, 128, "~r~Killing Spree: ~y~%d", AccInfo[killerid][KSpree]);
PlayerTextDrawSetString(killerid, KSpree1[killerid], string);
PlayerTextDrawShow(killerid, KSpree1[killerid]);
PlayerTextDrawHide(killerid, KSpree2[killerid]);
format(string, 128, "~r~Best Killing Spree: ~y~%d", AccInfo[killerid][BKSpree]);
PlayerTextDrawSetString(killerid, KSpree2[killerid], string);
PlayerTextDrawShow(killerid, KSpree2[killerid]);
PlayerTextDrawHide(killerid, KSpree3[killerid]);
format(string, 128, "~y~+1 Score, +500 Cash");
PlayerTextDrawSetString(killerid, KSpree3[killerid], string);
PlayerTextDrawShow(killerid, KSpree3[killerid]);
SetTimerEx("HKTXD", 3000, false, "i", killerid);
//------------------------------------------------------------------
GivePlayerMoney(killerid, 1000);
}
}
but , in server show me this