17.08.2011, 14:56
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new killer[24],killed[24];
GetPlayerName(killerid,killer,sizeof(killer));
GetPlayerName(playerid,killed,sizeof(killed));
new money = GetPlayerMoney(playerid);
if(IsInMini[playerid] == 1)
{
new killmsg[129];
format(killmsg,sizeof(killmsg),"{008080} %s je ubio %s dvoboju,",killer,killed);
SendClientMessageToAll(0xFFF000FF,killmsg);
format(killmsg,sizeof(killmsg),"{008080} te uzeo njegovihg {009400} %d {008080}.",money);
SendClientMessageToAll(0xFFF000FF,killmsg);
GivePlayerMoney(killerid,money);
GivePlayerMoney(playerid,-money);
IsInMini[playerid] = 0;
SetPlayerVirtualWorld(playerid,0);
IsInMini[killerid] = 0;
SetPlayerVirtualWorld(killerid,0);
}
return 1;
}