16.12.2014, 00:38
Meu onplayerdeath:
Nгo fiz nada de errado parece, alguem pode me ajudar?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
ResetPlayerWeapons(playerid);
kills[killerid] += 1;
deaths[playerid] += 1;
// textdraw morto! ultimo
PlayerTextDrawShow(playerid, PlayerText:TextdrawMorto0);
PlayerTextDrawShow(playerid, PlayerText:TextdrawMorto1);
PlayerTextDrawShow(playerid, PlayerText:TextdrawMorto2);
PlayerTextDrawShow(playerid, PlayerText:TextdrawMorto3);
PlayerTextDrawShow(playerid, PlayerText:TextdrawMorto4);
// voltar pos que morreu
GetPlayerPos(playerid, deathpos[playerid][0], deathpos[playerid][1], deathpos[playerid][2]);
morto[playerid] = 1;
SpawnPlayer(playerid);
return 1;
}