07.06.2009, 05:27
I have two functions running at the same time, and they're conflicting with each other. This is what I've found out at least.
When I spawn, it spawns me normally. But when I set my spawn to be at my house, it bugs up and teles me to the hospital at the SetPlayerPos.
What can I do?
Quote:
public OnPlayerSpawn(playerid) { if(gPlayerLogged[playerid]) { SetPlayerSpawn(playerid); } { SetPlayerInterior(playerid, 0); if(WasDeath[playerid] == 1) { SetPlayerPos(playerid,1157.4813,-1327.0978,26.7951); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1214.2236,-1324.5652,26.9604); SetPlayerCameraLookAt(playerid,1183.3402,-1324.1967,20.9604); SendClientMessage(playerid,RED,"[INFO:] You have fallen unconcious and been sent to the hospital. Your weapons have been confiscated."); RespawnTimer[playerid] = SetTimerEx("RespawnPlayer", 1000, 1, "i", playerid); rcount[playerid] = 60; WasDeath[playerid] = 0; } } |
What can I do?