23.08.2011, 23:15
O tуpico jб diz alguйm pode passar eu to no iPhone aн preciso que post pastebin obg desde jб
#include <a_samp>
new HealthDropado;
new Drop;
new Float:Health;
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerHealth(playerid,Health) > 0)
{
HealthDropado = GetPlayerHealth(playerid,Health);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
Drop = CreatePickup(1240,4,x,y,z-0.8);
}
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Drop)
{
SetPlayerHealth(playerid,Health +HealthDropado);
DestroyPickup(Drop);
}
return 1;
}
SetPlayerHealth(playerid,Health +HealthDropado);