SA-MP Forums Archive
Not spawn in interior. - 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)
+--- Thread: Not spawn in interior. (/showthread.php?tid=456284)



Not spawn in interior. - Baton4ik - 05.08.2013

Hello all, i have trouble. Player doesn't spawn in interior in this code. When code was complete, i type command /deb and interior appears .Help please

PHP код:
if(GetPVarInt(playerid,"skinfunc") == 1)
    {
        
SetPlayerVirtualWorld(playerid,world);
        ++
world;
        
TextDrawShowForPlayer(playerid,uplineskin1[playerid]);
        
TextDrawShowForPlayer(playerid,bottomlineskin1[playerid]);
        
TextDrawShowForPlayer(playerid,SelectYourSkin[playerid]);
        
TextDrawShowForPlayer(playerid,Prev[playerid]);
        
TextDrawShowForPlayer(playerid,Next[playerid]);
        
TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
        
SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
        
SetPlayerInterior(playerid,14);
        
TextDrawShowForPlayer(playerid,Accept[playerid]);
        
SelectTextDraw(playerid,0x00FF00FF);
        
SetPlayerSkin(playerid,1);
        
SetPlayerCameraPos(playerid,-1832.84545811.3173651062.743408);
        
SetPlayerCameraLookAt(playerid,-1832.91467216.2531431061.947631);
        
TogglePlayerControllable(playerid,false);
    } 
PHP код:
if(!strcmp(cmdtext"/deb"true))
    {
        
SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
        
SetPlayerInterior(playerid,14);
    } 



Re: Not spawn in interior. - FiReAlEx - 05.08.2013

Try like this
Код:
if(GetPVarInt(playerid,"skinfunc") == 1) 
    { 
        TextDrawShowForPlayer(playerid,uplineskin1[playerid]); 
        TextDrawShowForPlayer(playerid,bottomlineskin1[playerid]); 
        TextDrawShowForPlayer(playerid,SelectYourSkin[playerid]); 
        TextDrawShowForPlayer(playerid,Prev[playerid]); 
        TextDrawShowForPlayer(playerid,Next[playerid]); 
        TextDrawShowForPlayer(playerid,Textdraw0[playerid]); 
        SetPlayerInterior(playerid,14);
        SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554); 
        TextDrawShowForPlayer(playerid,Accept[playerid]); 
        SelectTextDraw(playerid,0x00FF00FF); 
        SetPlayerSkin(playerid,1); 
        SetPlayerCameraPos(playerid,-1832.845458, 11.317365, 1062.743408); 
        SetPlayerCameraLookAt(playerid,-1832.914672, 16.253143, 1061.947631); 
        TogglePlayerControllable(playerid,false); 
    }



Re: Not spawn in interior. - Baton4ik - 05.08.2013

Not work!