Need help - Headshot system
#1

Код:
/*
Headshot System By SNAKE12 Please Dont Remove Credits.
*/
#include <a_samp>

#define GREEN 0x33FF33AA

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33) && bodypart == 9)//check if the shooter shoot in sniper and check if shoot in head
    {
    PlayAudioStreamForPlayer(playerid, "http://soundcli.ps/download/1639.mp3");// play music for who killed.
    PlayAudioStreamForPlayer(issuerid, "http://soundcli.ps/download/1639.mp3");// play music for killer.
    SetPlayerHealth(playerid, 0.0);//kill player
    GameTextForPlayer(issuerid, "~r~Head shot!", 3000, 6);
    GameTextForPlayer(playerid, "~r~Head shot!", 3000, 6);
    }
    return 1;
}
Код:
error 025: function heading differs from prototype
Error Part:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
Reply
#2

Use proper includes. Bodypart parameter was added in SA-MP 0.3z which means you're trying to compile with includes from 0.3x or earlier.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use proper includes. Bodypart parameter was added in SA-MP 0.3z which means you're trying to compile with includes from 0.3x or earlier.
Well,Can you send me the newest update of the include pack?
Reply
#4

www.sa-mp.com
Reply
#5

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
I see the link you posted is samp website not includes link.
Reply
#6

Quote:
Originally Posted by Kinglee
Посмотреть сообщение
I see the link you posted is samp website not includes link.
Includes come with the server package.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)