24.12.2013, 03:44
Hello,
Simple problem,
This is a duel section fight, but when the killer kills, its supposed to respawn him but it doesnt. Need help on this please.
P.S When once the duel is over, it will show the message "%s has won the duel agains %s..." but the second time it wont. Help on that will be appreciated.
Simple problem,
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
inStunt[playerid] = 0;
if(InvitedDuel[killerid] == true)
{
new Float:healthkiller;
new namekiller[24],namedeather[24],string[500];
GetPlayerName(killerid, namekiller, 24);
GetPlayerName(playerid, namedeather, 24);
GetPlayerHealth(killerid,healthkiller);
format(string, sizeof(string), "%s has won the duel against %s by %0.0f health",namekiller,namedeather,healthkiller);
SendClientMessageToAll(0xB2E5BCAA, string);
SpawnPlayer(killerid);
InvitedDuel[killerid] = false;
InvitedDuel[playerid] = false;
IdDuel[playerid] = playerid;
IdDuel[killerid] = killerid;
UsingArena = false;
healthkiller = 0;
}
return 1;
}
P.S When once the duel is over, it will show the message "%s has won the duel agains %s..." but the second time it wont. Help on that will be appreciated.


