SA-MP Forums Archive
[Ajuda] COMO POR ESSE SISTEMA? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] COMO POR ESSE SISTEMA? (/showthread.php?tid=628388)



COMO POR ESSE SISTEMA? - Helielto - 09.02.2017

Queria poor esse sistema:
https://*********/EnP9q2FuBlc
Hitmark,quando tu acerta o cara aparece o dano da sua arma na skin ou no lugar que ele foi atingido,Alguem ajuda?


Re: COMO POR ESSE SISTEMA? - IlanZ - 09.02.2017

OnPlayerTakeDamage
GetPlayerPos
Create3DTextLabel
DeletePlayer3DLabel


Re: COMO POR ESSE SISTEMA? - SrVinnyh - 10.02.2017

Код:
#include <a_samp>

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        new
            infoString[128],
            weaponName[24],
            victimName[MAX_PLAYER_NAME],
            attackerName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, victimName, sizeof (victimName));
        GetPlayerName(issuerid, attackerName, sizeof (attackerName));

        GetWeaponName(weaponid, weaponName, sizeof (weaponName));

        format(infoString, sizeof(infoString), "%s Causou %.0f dando da %s, arma: %s", attackerName, amount, victimName, weaponName);
        SendClientMessageToAll(-1, infoString);
    }
    return 1;
    }
Resultado da compilaзгo.
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: COMO POR ESSE SISTEMA? - Helielto - 12.02.2017

Quote:
Originally Posted by SrVinnyh
Посмотреть сообщение
Код:
#include <a_samp>

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        new
            infoString[128],
            weaponName[24],
            victimName[MAX_PLAYER_NAME],
            attackerName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, victimName, sizeof (victimName));
        GetPlayerName(issuerid, attackerName, sizeof (attackerName));

        GetWeaponName(weaponid, weaponName, sizeof (weaponName));

        format(infoString, sizeof(infoString), "%s Causou %.0f dando da %s, arma: %s", attackerName, amount, victimName, weaponName);
        SendClientMessageToAll(-1, infoString);
    }
    return 1;
    }
Resultado da compilaзгo.
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
: error 021: symbol already defined: "OnPlayerTakeDamage"
Ta dando isso /\


Re: COMO POR ESSE SISTEMA? - MkeY - 12.02.2017

Essa callback jб estб definida, й sу copiar o que estб dentro dessa que ele colocou aqui para dentro da callback que estб no seu gamemode.


Re: COMO POR ESSE SISTEMA? - Helielto - 12.02.2017

Nгo estб definida nгo brow,nгo existe OnPlayerTakeDamage
Mas tmb so novato nisso,se poderem ajuda


Re: COMO POR ESSE SISTEMA? - HeisenGiromB - 12.02.2017

https://sampforum.blast.hk/showthread.php?tid=557893 isso ai й uma base, vc pode fazer o seu, vc й capaz!


Re: COMO POR ESSE SISTEMA? - PesadaO - 12.02.2017

Tenho um aqui ele aparece o dano que voce levou e o dano que voce da , aparece ao lado do mapa

Baixa ai , se gostar da uma rp ^^ http://pastebin.com/dvfsneMJ


Re: COMO POR ESSE SISTEMA? - Helielto - 12.02.2017

eu quero que o dano fica na skin do cara e nгo em baixo...
Mais alguйm?


Re: COMO POR ESSE SISTEMA? - PesadaO - 12.02.2017

Como assim na skin moзo ?