20.12.2011, 22:06
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
new pname [MAX_PLAYER_NAME];
new stringmato[265];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(stringmato, sizeof(stringmato), "Vocк matou %s, e roubou 1000 dele quando o mesmo caiu no chгo", pname);
SendClientMessage(playerid, SERVIDORDIZ, stringmato);
GivePlayerMoney(killerid, 1000);
new kname [MAX_PLAYER_NAME];
new stringmorreu[265];
GetPlayerName(killerid, kname, MAX_PLAYER_NAME);
format(stringmorreu, sizeof(stringmorreu), "Vocк foi morto por %s, e o safado ainda te roubou 1000", kname);
SendClientMessage(playerid, SERVIDORDIZ, stringmorreu);
GivePlayerMoney(playerid, -1000);
ResetPlayerWeapons(playerid);
return 1;
}