04.05.2013, 18:27
Olб galera tudo bem?, sou novo no fуrum e queria saber como faзo pra colocar aquele caixгo quando o player й morto. agradeзo.
#include "a_samp.inc"
new Obj[MAX_PLAYERS], Float:Pos[MAX_PLAYERS][3];
public OnPlayerDeath(playerid, killerid, reason)
{
GetPlayerPos(playerid, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2]);
Obj[playerid] = CreateObject(2896, Pos[playerid][0], Pos[playerid][1], Pos[playerid][2] -1.0 , 0, 0, 100.0);
SetTimerEx("Destroi", 5000, false, "i", playerid);
return 1;
}
forward Destroi(playerid); public Destroi(playerid)return DestroyObject(Obj[playerid]);