[plz help me]no respawn after death. - 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: [plz help me]no respawn after death. (
/showthread.php?tid=112244)
[plz help me]no respawn after death. -
Tigerbeast11 - 06.12.2009
how can i make a no respawn after death? and the people alive at the end of 5 mins should get some money?
Re: no respawn after death. -
Sergei - 06.12.2009
The easiest way is to put them in spectation mode. Otherwise you can also just set them somewhere and freeze them or something.
Re: no respawn after death. -
Tigerbeast11 - 06.12.2009
how would i do this?
Re: [plz help me]no respawn after death. -
Tigerbeast11 - 06.12.2009
Will I have to use TogglePlayerSpectating? How would i make the people alive to get some money at the end of 5 mins?
Re: [plz help me]no respawn after death. -
dice7 - 06.12.2009
Use a timer
Re: [plz help me]no respawn after death. -
*ToM* - 06.12.2009
You can also do something like this :
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid, coords);
SetPlayerInterior(playerid, interiorid);
TogglePlayerControllable(playerid, 0);
return 1;
}
Simple command but useful, but dunno what u want really
Re: [plz help me]no respawn after death. -
Tigerbeast11 - 06.12.2009
Ok, thnx. What about making people get money if they survive?
Re: [plz help me]no respawn after death. -
EirikhO - 06.12.2009
GivePlayerMoney(playerid,amount)?
Re: [plz help me]no respawn after death. -
Tigerbeast11 - 06.12.2009
But would i need a check to see if the player is still alive?