4 Questions
#9

For scripting stuff you should read through the tutorial section in the samp wiki.
And also look at other peoples released filterscripts to get a good idea of how to script stuff like this.

The previous suggestions for spawn invincibility are kinda ridiculous and inefficient.

Here is the basics of how to do that, however i don't have pawno on me, so you will have to test it yourself:

Код:
forward SetPlayerSpawnHealth(playerid);
public OnPlayerSpawn(playerid)
{
  SetPlayerHealth(playerid,99999);
  SendClientMessage(playerid,0xFFFFFFFF, "spawned invincible");
  SetTimerEX("SetPlayerSpawnHealth",6000, "i", playerid);
}
public SetPlayerSpawnHealth(playerid)
{
  SetPlayerHealth(playerid,100);
  SendClientMessage(playerid,0xFFFFFFFF, "no longer invincible");
}
Reply


Messages In This Thread
4 Questions - by DeltaAirlines12 - 23.12.2009, 20:47
Re: Questions - by Niixie - 23.12.2009, 21:00
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 21:46
Re: 4 Questions - by Niixie - 23.12.2009, 22:10
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 22:12
Re: 4 Questions - by DeltaAirlines12 - 24.12.2009, 16:39
Re: 4 Questions - by WThieves - 24.12.2009, 16:47
Re: 4 Questions - by WThieves - 24.12.2009, 17:00
Re: 4 Questions - by mansonh - 24.12.2009, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)