24.12.2009, 20:42
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:
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"); }