need granate script - 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: need granate script (
/showthread.php?tid=420766)
need granate script -
ignas1125 - 06.03.2013
Hi i hawe boomer script that explode ant infect another i need that script but just with granate

i drop granate take health ant infect players.
boomer script:
Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,Float:x,Float:y,Float:z);
SetPlayerHealth(playerid,0.0);
CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
foreach(Player,i)
{
GetClosestPlayer(i);
if(IsPlayerConnected(i))
{
switch(GetPlayerSkin(i))
{
case NON_IMMUNE:
{
if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
{
if(pInfo[i][IsPlayerInfected] == 0)
{
InfectPlayerStandard(i);
i don't forget if you help.
Re: need granate script -
ignas1125 - 06.03.2013
BUMP.. ? i think this need to make with playertakedamage but i can't getting errors ;/ somebody ?
Re: need granate script -
kaisersouse - 06.03.2013
Don't bump more often than 24 hours. If someone can help you, they will. If they can't help you, they won't. Just be patient and try and figure it out on your own while you wait.