[Pedido] Objeto Na Cabeзa Do Player
#3

Quote:
Originally Posted by Dark.Angel
Посмотреть сообщение
Achei pra vc, Edix postou isso no topico dele: https://sampforum.blast.hk/showthread.php?pid=2405394#pid2405394
pawn Код:
//Made by FKu
#include <a_samp>
forward dmgtdhide(playerid);
new Text:FKu_DMGtd[MAX_PLAYERS char],ObjectID[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
    FKu_DMGtd{playerid} = TextDrawCreate(150.000000, 375.000000, "HIT");
    TextDrawLetterSize(FKu_DMGtd{playerid}, 0.480000, 2.000000);
    TextDrawColor(FKu_DMGtd{playerid}, 0xFF0000FF);
    return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    new FKu_string[10],Float:check[MAX_PLAYERS];
    format(FKu_string,sizeof(FKu_string),"HIT: %f",amount);
    TextDrawSetString(FKu_DMGtd{playerid},FKu_string);
    TextDrawShowForPlayer(playerid,FKu_DMGtd{playerid});
    GetPlayerArmour(damagedid,check[damagedid]);
    if(check[damagedid] == 0)   ObjectID{playerid} = CreateObject(1240, 0.0, 0.0, -100.0, 0.0, 0.0, 0.0, 0.0);
    else    ObjectID{playerid} = CreateObject(1242, 0.0, 0.0, -100.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToPlayer(ObjectID{playerid}, damagedid, 0.0, 0.0, 1.5, 0.0, 0.0, 0.0);
    SetTimerEx("dmgtdhide",750,false,"d",playerid);
    return 1;
}
public dmgtdhide(playerid)
{
    TextDrawHideForPlayer(playerid,FKu_DMGtd{playerid});
    DestroyObject(ObjectID{playerid});
    return 1;
}
Quando atiro No Player Ele Cria Outro Objeto??
Acho Que Esse Codigo Nгo Foi Testado.
Reply


Messages In This Thread
Objeto Na Cabeзa Do Player - by drop - 10.04.2014, 05:45
Re: Objeto Na Cabeзa Do Player - by Dark.Angel - 10.04.2014, 06:28
Re: Objeto Na Cabeзa Do Player - by drop - 10.04.2014, 06:49
Re: Objeto Na Cabeзa Do Player - by Dark.Angel - 10.04.2014, 06:53
Re: Objeto Na Cabeзa Do Player - by drop - 10.04.2014, 17:11
Re: Objeto Na Cabeзa Do Player - by VeNuZ_ - 10.04.2014, 17:13
Re: Objeto Na Cabeзa Do Player - by PT - 10.04.2014, 17:16
Re: Objeto Na Cabeзa Do Player - by drop - 10.04.2014, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)