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


Messages In This Thread
Need help - Headshot system - by MaxOkay - 05.06.2015, 21:57
Re: Need help - Headshot system - by Vince - 05.06.2015, 22:00
Re: Need help - Headshot system - by MaxOkay - 05.06.2015, 22:20
Re: Need help - Headshot system - by Ahmad45123 - 05.06.2015, 23:44
Re: Need help - Headshot system - by Dangjai - 05.06.2015, 23:56
Re: Need help - Headshot system - by J0sh... - 05.06.2015, 23:57

Forum Jump:


Users browsing this thread: 2 Guest(s)