[Help]Does anyone know ?
#1

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 .
Reply
#2

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)