21.03.2010, 08:09
Quote:
Originally Posted by jameskmonger
It's nothing to do with it being run on Linux.
(Hint: It's to do with OnPlayerDeath) |
Код:
public OnPlayerDeath(playerid, killerid, reason) { new killername[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(killerid, killername, sizeof(killername)); GetPlayerName(playerid, playername, sizeof(playername)); if(BbI3oB[playerid] == 1 && BbI3oB[killerid] == 1 && duelstart == 1) { SpawnPlayer(killerid); BbI3oB[playerid] = 0; BbI3oB[killerid] = 0; duelstart = 0; format(string, sizeof(string), "*You won duel with %s",playername); SendClientMessage(killerid,COLOR_YELLOW, string); format(string, sizeof(string), " *You loose duel with %s",killername); SendClientMessage(playerid,COLOR_YELLOW, string); format(string, sizeof(string), " %s won duel with %s",killername,playername); SendClientMessageToAll(COLOR_YELLOW, string); } return 0; }