Hey! - 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: Hey! (
/showthread.php?tid=69325)
Hey! -
kodo7 - 17.03.2009
how can i make when player dies then he freezes there and he can /accept death
Re: Hey! -
MenaceX^ - 17.03.2009
Seems like you want to copy it from EvG..
Anyway,
OnPlayerDeath, get the killerid pos and set the playerid there after his dying, create a varieble of the /accept death, if player dies freeze him and set his positions at killerid and active the varieble of accept death. Make the cmd /accept death with strtok, so you can use it multi times in other things.
Re: Hey! -
kodo7 - 17.03.2009
Quote:
Originally Posted by MenaceX^
Seems like you want to copy it from EvG..
Anyway,
OnPlayerDeath, get the killerid pos and set the playerid there after his dying, create a varieble of the /accept death, if player dies freeze him and set his positions at killerid and active the varieble of accept death. Make the cmd /accept death with strtok, so you can use it multi times in other things.
|
sounds complicated but i will give a try
Re: Hey! -
MenaceX^ - 17.03.2009
What sounds complicated...?
Re: Hey! -
dafel2 - 17.03.2009
Quote:
Originally Posted by kodo7
Quote:
Originally Posted by MenaceX^
Seems like you want to copy it from EvG..
Anyway,
OnPlayerDeath, get the killerid pos and set the playerid there after his dying, create a varieble of the /accept death, if player dies freeze him and set his positions at killerid and active the varieble of accept death. Make the cmd /accept death with strtok, so you can use it multi times in other things.
|
sounds complicated but i will give a try
|
how can i get killer id pos getplayerpos[killerid]?
then setplayerpos(playerid, x y z )
Re: Hey! -
Kinetic - 17.03.2009
Death is something that you cannot choose to accept
Re: Hey! -
MenaceX^ - 17.03.2009
Make a float.
Re: Hey! -
Kinetic - 17.03.2009
Quote:
Originally Posted by MenaceX^
Make a float.
|
Why would you do that?
Edit:Nevermind, I didnt realize you were talking about the SetPlayerPos :P
Re: Hey! -
MenaceX^ - 17.03.2009
Think again.
Edit: Ok :P