28.12.2014, 19:30
Hello so today i make new interior for my hospital (interior id 2) i have tested with enter exit pickups and one teleportation command its working and its get my ware i should , the thing is when i dead i get in thos pos but i am start falling ant nothing appear around :
hare is my onplayerdeath
and as i said i have tried this commands to set my at same pos and interior like on player death is works :
so after death i am start alling in interior 2 when i reach ground i dead again and then my pos are set to there ware i spawn at start . And i have problem with vehicle to if i dead in vehicle i just get in my spawn pos
hare is my onplayerdeath
Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerPos(playerid, 2563.9680,-1821.03295,1223.7919); SetPlayerInterior(playerid, 2); SetTimerEx("UnfreezePlayer", 10000, false, "i", playerid); //SetPlayerVirtualWorld(playerid, 0); return 1; }
Код:
if(strcmp(cmdtext, "/tele", true) == 0) { SetPlayerPos(playerid, 2563.9680,-1821.03295,1223.7919); SetPlayerInterior(playerid, 2); return 1; }