05.01.2019, 18:16
Now when the player dies it spawns at the location I put in and the he teleports again to the location he logged in
any help?
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
user.priesmirti[playerid] = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, -GetPlayerMoney(playerid));
user.mires[playerid] = true;
SetTimerEx("mire", 3000, false,"i", playerid);
return 1;
}
PHP код:
public mire(playerid)
{
user.priesmirti[playerid] = 0;
GivePlayerMoney(playerid, user.priesmirti[playerid]);
SetPlayerFacingAngle(playerid, 182.0350);
SetPlayerPos(playerid, -2664.7725,635.7092,14.4531);
return 1;
}