SA-MP Forums Archive
Problem with public SetPlayerSpawn (playerid) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with public SetPlayerSpawn (playerid) (/showthread.php?tid=208411)



Problem with public SetPlayerSpawn (playerid) - DarkChildren - 08.01.2011

Good afternoon I come because I have a problem I can not solve is the following when you finish the tutorial example appears all white with the picture that showed

/imageshack/i/samp050kk.png/


Re: Problem with public SetPlayerSpawn (playerid) - Kwarde - 08.01.2011

You probably did only set positions.
Set the interior (+ virtual world).
In the image, the player is in a wrong interior ID :P


Respuesta: Problem with public SetPlayerSpawn (playerid) - DarkChildren - 08.01.2011

as it is well inside the airport jejejeje


Re: Problem with public SetPlayerSpawn (playerid) - Kwarde - 08.01.2011

Huh what? I didn't get that one.
Did it work now, or do you need an interior ID?


Respuesta: Problem with public SetPlayerSpawn (playerid) - DarkChildren - 08.01.2011

this well

pawn Код:
public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        //TextDrawShowForPlayer(playerid,Information[playerid]);
        //SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
        if(PlayerInfo[playerid][pTut] == 0)
        {
            gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            SetPlayerInterior(playerid, 14);
            SetPlayerPos(playerid,-1830.5217,18.3851,1061.1436);
            SetPlayerCameraPos(playerid, -1832.4875, 12.6962, 1061.7435);
            SetPlayerCameraLookAt(playerid, -1831.9642, 22.6825, 1061.7435);
            PlayerInfo[playerid][pInt] = 14;
            SetPlayerFacingAngle(playerid,180.0);
            TogglePlayerControllable(playerid, 0);
            RegistrationStep[playerid] = 1;