OnPlayerDeath spawns at login location
#1

Now when the player dies it spawns at the location I put in and the he teleports again to the location he logged in

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
user.priesmirti[playerid] = GetPlayerMoney(playerid);
    
GivePlayerMoney(playerid, -GetPlayerMoney(playerid));
    
user.mires[playerid] = true;
    
SetTimerEx("mire"3000false,"i"playerid);
    return 
1;

PHP код:
public mire(playerid)
{
    
user.priesmirti[playerid] = 0;
    
GivePlayerMoney(playeriduser.priesmirti[playerid]);
    
SetPlayerFacingAngle(playerid182.0350);
    
SetPlayerPos(playerid, -2664.7725,635.7092,14.4531);
    return 
1;

any help?
Reply


Messages In This Thread
OnPlayerDeath spawns at login location - by Kevinas100 - 05.01.2019, 18:16
Re: OnPlayerDeath spawns at login location - by Heress - 05.01.2019, 18:24
Re: OnPlayerDeath spawns at login location - by Kevinas100 - 05.01.2019, 18:32
Re: OnPlayerDeath spawns at login location - by Heress - 05.01.2019, 19:12
Re: OnPlayerDeath spawns at login location - by Heress - 05.01.2019, 19:25
Re: OnPlayerDeath spawns at login location - by Heress - 06.01.2019, 10:47

Forum Jump:


Users browsing this thread: 2 Guest(s)