OnPlayerSpawn
#1

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.
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;
}
}

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


Messages In This Thread
OnPlayerSpawn - by Snyper - 07.06.2009, 05:27
Re: OnPlayerSpawn - by samgreen - 07.06.2009, 05:41
Re: OnPlayerSpawn - by Snyper - 07.06.2009, 06:00
Re: OnPlayerSpawn - by Snyper - 07.06.2009, 15:53
Re: OnPlayerSpawn - by samgreen - 07.06.2009, 18:15
Re: OnPlayerSpawn - by Luka P. - 07.06.2009, 18:20
Re: OnPlayerSpawn - by Snyper - 07.06.2009, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)