SA-MP Forums Archive
[Help]Does anyone know ? - 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)
+--- Thread: [Help]Does anyone know ? (/showthread.php?tid=287518)



[Help]Does anyone know ? - moadi - 03.10.2011

Hey there,

I've been trying to script something , a part of it is, if the player has died in a certain range of point it calls my code and prevent other stuff such us respawning at the usual places players spawn at after death.

Is there a function to call my code if the player has died ? and how can i make it that after death it calls my code instead of getting the player to respawn at AddPlayerClass ?

Thanks in advance .


Re: [Help]Does anyone know ? - Pharrel - 03.10.2011

pawn Код:
//public OnPlayerDeath
if(IsPlayerInRangeOfPoint(playerid, range, X, Y, Z))
{
SetPlayerPos(playerid, X, Y, Z)
return 1;
}
Idk if is just in 0.3d but for me onplayerdeath isnt spawning so this must works...