SA-MP Forums Archive
HELP COMPLITING - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP COMPLITING (/showthread.php?tid=561548)



HELP COMPLITING - Mijata - 03.02.2015

can somebody complite fs with it

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
 if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid))
 {
                if((weaponid == 34) && bodypart == 9)
                {
                    SetPlayerHealth(playerid, 0.0);
                    GameTextForPlayer(issuerid, "~r~Headshot", 3000, 3);
                    GameTextForPlayer(playerid, "~r~Headshot", 3000, 3);
                }
    else return PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
 }else {GameTextForPlayer(issuerid, "~r~Team killing not allowed", 3000, 3);}
 }
   return 1;
}
pls when i complite i have errors with this line
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart)
pls complite and send me pwn and amx


Re: HELP COMPLITING - MBilal - 03.02.2015

Here You go download Attachments..


Re: HELP COMPLITING - Mijata - 03.02.2015

thanks


Re: HELP COMPLITING - Mijata - 03.02.2015

but can u change text head shot to head shot!
and team killing not allowed to team killing is not allowed!


Re: HELP COMPLITING - Schneider - 03.02.2015

If you get "function heading differs from prototype"-error. You have to update your includes to sa:mp 0.3z


Re: HELP COMPLITING - CalvinC - 03.02.2015

Just update your a_samp to the latest version and it will work.


Re: HELP COMPLITING - Mijata - 03.02.2015

can u send me download link pls pls


Re: HELP COMPLITING - CalvinC - 03.02.2015

http://sa-mp.com/download.php