27.11.2012, 11:59
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerGrana(killerid, GetPlayerMoney(playerid));
GivePlayerGrana(playerid, -GetPlayerMoney(playerid));
TextDrawHideForPlayer(playerid,txtTimeDisp);/*nгo mexer aki */
SendDeathMessage(killerid,playerid,reason);
new kname[MAX_PLAYER_NAME];
GetPlayerName(killerid, kname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, kname);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
GameTextForPlayer(playerid,"", 2500, 5);
dini_IntSet(file, "usoudroga", 1);
TextDrawShowForPlayer(playerid, topblack);
TextDrawShowForPlayer(playerid, bottomblack);
algemado[playerid] = 0;
GPS_Spawned[playerid] = 0;
autoescola[playerid] = 0;
sequestro[playerid] = 0;
prefls[playerid] = 0;
prefsf[playerid] = 0;
preflv[playerid] = 0;
nobarls[playerid] = 0;
nobarsf[playerid] = 0;
nobarlv[playerid] = 0;
nobarfc[playerid] = 0;
nautlls[playerid] = 0;
dini_IntSet(file, "convitent", 0);
dini_IntSet(file, "Entrevista", 0);
dini_IntSet(file2, "DM", 1);
SetPlayerWantedLevel(killerid, 1);
dini_IntSet(file, "usoudroga", 0);