SA-MP Forums Archive
How I can make Protection Spawn - 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: How I can make Protection Spawn (/showthread.php?tid=163266)



How I can make Protection Spawn - waim - 26.07.2010

Guys I want make Players when they will spawn they will be protected 5 seconds


Re: How I can make Protection Spawn - Johny_James - 26.07.2010

This solves your problem!
https://sampforum.blast.hk/showthread.php?tid=137642

First time i helped someone on this forum


Re: How I can make Protection Spawn - waim - 26.07.2010

Quote:
Originally Posted by Johny_James
Посмотреть сообщение
This solves your problem!
https://sampforum.blast.hk/showthread.php?tid=137642

First time i helped someone on this forum
Thank you bro But The Download Not Found


Re: How I can make Protection Spawn - Johny_James - 26.07.2010

oh,then sorry i didn't know for that...


Re: How I can make Protection Spawn - waim - 26.07.2010

Quote:
Originally Posted by Johny_James
Посмотреть сообщение
oh,then sorry i didn't know for that...
No Problem ) Thanks anyway


Re: How I can make Protection Spawn - willsuckformoney - 26.07.2010

i help you, give me a few minutes to put it together


Re: How I can make Protection Spawn - waim - 26.07.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
i help you, give me a few minutes to put it together
Take your Time Bro and Thank you so much


Re: How I can make Protection Spawn - Kar - 26.07.2010

let him use this tut. it will help him:d

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(IsPlayerInRangeOfPoint(killerid, 20, 1587, -1693, 7)) // It means that if the player is within 20 meter range some around the Garage of LSPD the following will happen :
   {
    SetPlayerHealth(killerid, 0); // my punishment for the Spawn Killer is Death.
    SendClientMessage(killerid, Red, "SERVER : You can't spawn kill!"); // then sends him a message that he can't spawn kill
   }
   return 1;
}
http://forum.sa-mp.com/showthread.ph...ght=anti+spawn


Re: How I can make Protection Spawn - willsuckformoney - 26.07.2010

^^^^^^^^^^^^^^^^^


Re: How I can make Protection Spawn - GaGlets(R) - 26.07.2010

At OnPlayerSpawn, make a timer and give health 999 to player.

Make an individual timer for only spawned player.
pawn Код:
SetTimerEx
make a forward - for timer and public for it or just use stock etc..

pawn Код:
forward ProtectionStop(playerid)
public ProtectionStop(playerid)
{
SetPlayersHealth(playerid,100);
}



Re: How I can make Protection Spawn - waim - 26.07.2010

This is an anti spawn kill .. I want protection spawn


Re: How I can make Protection Spawn - waim - 26.07.2010

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
At OnPlayerSpawn, make a timer and give health 999 to player.

Make an individual timer for only spawned player.
pawn Код:
SetTimerEx
make a forward - for timer and public for it or just use stock etc..

pawn Код:
forward ProtectionStop(playerid)
public ProtectionStop(playerid)
{
SetPlayersHealth(playerid,100);
}
I'm noob ;( Can you explain to me more