05.06.2015, 21:57
Код:
/* 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
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)