Problem with SetSpawnInfo
#5

Okay so this is what I have done:

Login Script:
PHP Code:
SetSpawnInfo(extraid0playerInfo[extraid][pModel], playerInfo[extraid][pPos][0], playerInfo[extraid][pPos][1], playerInfo[extraid][pPos][2], 1.0, -1, -1, -1, -1, -1, -1);
SetCameraBehindPlayer(extraid);
SetPlayerInterior(extraidplayerInfo[extraid][pInterior]);
SetPlayerVirtualWorld(extraidplayerInfo[extraid][pVirtualWorld]);
SetPlayerSkin(extraidplayerInfo[extraid][pModel]);
SetPlayerHealth(extraid,0);
loginspawn[extraid]++;
SpawnPlayer(extraid);
SetTimerEx("SkinDelay"1000false"d"extraid); 
OnPlayerDeath
PHP Code:
if(loginspawn[playerid] == 1)
{
    
loginspawn[playerid] = 0;
    
SetPlayerHealth(playeridplayerInfo[playerid][pHealth]);
    
SetPlayerArmour(playeridplayerInfo[playerid][pArmour]);

Still having problems with the spawn.. It's killing me every time now. I've been debugging in the console and it's setting me in the correct positions also at the correct height. So at least something is working correctly.
Reply


Messages In This Thread
Problem with SetSpawnInfo - by Peach - 11.11.2012, 11:53
Re: Problem with SetSpawnInfo - by XtremeR - 11.11.2012, 11:56
Re: Problem with SetSpawnInfo - by Peach - 11.11.2012, 12:01
Re: Problem with SetSpawnInfo - by XtremeR - 11.11.2012, 12:04
Re: Problem with SetSpawnInfo - by Peach - 11.11.2012, 12:14
Re: Problem with SetSpawnInfo - by XtremeR - 11.11.2012, 12:34
Re: Problem with SetSpawnInfo - by Peach - 11.11.2012, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)