05.03.2013, 20:23
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new textomorte[120],textomatou[120];
SendDeathMessage(killerid, playerid, reason);
if(IsPlayerConnected(killerid))
{
GameTextForPlayer(playerid,"~r~Seu nub morreu pra esse cara",5000,5);
GameTextForPlayer(killerid,"~g~Ae tu matou esse otario",3000,5);
pInfo[killerid][matou]++;
pInfo[playerid][morreu]++;
SetPlayerScore(killerid,GetPlayerScore(playerid)+1);
GivePlayerMoney(killerid,GetPlayerMoney(playerid)+1000);
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
GivePlayerMoney(playerid,GetPlayerMoney(playerid)-1000);
}
pInfo[playerid][suicidios]++;
format(textomatou,sizeof(textomatou),"Suicidios: %i",pInfo[killerid][suicidios]);
TextDrawSetString(Textdraw4,textomatou);
TextDrawShowForPlayer(playerid,Textdraw4);
return 1;
}
pawn Код:
Textdraw4 = TextDrawCreate(496.000000, 350.000000, "Suicidios: 0");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, -16711681);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);