SA-MP Forums Archive
Is that possible? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is that possible? (/showthread.php?tid=257612)



Is that possible? - tbedy - 27.05.2011

i want to put that is energy of all players smaller...

i want that player can die of 1 bullet from deset eagle.. is that possible to do ?


Respuesta: Is that possible? - admantis - 27.05.2011

Yes it is.


Re: Is that possible? - (SF)Noobanatior - 27.05.2011

you used to be able to go
Код:
instagib 1
in you server.cfg and if would one hit kill


Re: Is that possible? - TheYoungCapone - 27.05.2011

yea you can use onplayershootplayer include search for it


Re: Is that possible? - tbedy - 27.05.2011

don't working any of these advices...

always i must 3 bullets to kill...

i want that i can with 1 bulelt of deset eagle kill palyer


Re: Is that possible? - Markx - 27.05.2011

Well, but it does work.

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
    new Float:H;
    GetPlayerHealth(target, H);
    if(GetPlayerWeapon(shooter) == 24)
    SetPlayerHealth(target, H-100);
    return 1;
}



Re: Is that possible? - tbedy - 27.05.2011

Quote:
Originally Posted by Markx
Посмотреть сообщение
Well, but it does work.

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
    new Float:H;
    GetPlayerHealth(target, H);
    if(GetPlayerWeapon(shooter) == 24)
    SetPlayerHealth(target, H-100);
    return 1;
}
when i put this code i have 1 error

Quote:

C:\Documents and Settings\user\Desktop\Windows\gamemodes\VortexRole play.pwn(28751) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Re: Is that possible? - tbedy - 27.05.2011

any help ?