31.07.2013, 00:03
como faz pra colocar dano igual do bloody vegas quando atirar aparecer na tela assim
"Dano Layer 2% - Sniper"
"Dano Layer 2% - Sniper"
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
return 1;
}
new Text3D:label[MAX_PLAYERS];
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
new fName[MAX_PLAYER_NAME]; GetPlayerName(playerid, fName, sizeof(fName));
new msg[128];
format(msg, sizeof(msg), "%f %s - %d", amount, fName, weaponid);
label[damagedid] = Create3DTextLabel(msg, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[damagedid], damagedid, 0.0, 0.0, 0.7);
return 1;
}