SA-MP Forums Archive
little problem player auto kick on spectating - 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: little problem player auto kick on spectating (/showthread.php?tid=602930)



little problem player auto kick on spectating - LovelySoomro - 15.03.2016

PHP код:
forward spawning2(playerid);
public 
spawning2(playerid)
{
    if(
InClassSelection[playerid] == 1)
    {
    if(
dUserINT(PlayerName2(playerid)).("Registered") == 1)
    {
    new 
pname[MAX_PLAYER_NAME], string2[400 MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof(pname));
    
format(string2sizeof(string2),"~w~Welcome~n~~y~%s",pname);
    
TextDrawSetString(welcometext[playerid], string2);
    
TextDrawShowForPlayer(playeridwelcometext[playerid]);
    }
    
TogglePlayerSpectating(playerid,0);
    
SetPlayerVirtualWorld(playerid 5);
    
TextDrawHideForPlayer(playeridclassselection2);
    
TextDrawHideForPlayer(playeridclickhere);
    
InClassSelection[playerid] = 0;
    
SetPlayerPos(playerid,-2602.4817,-251.0630,19.2698);
    
SetPlayerCameraPos(playerid,-2604.9500,-238.9145,19.1350);
    
SetPlayerCameraLookAt(playerid,-2602.4817,-251.0630,19.2698);
    
SetPlayerFacingAngle(playerid ,35.6153);
    }
    return 
1;




Re: little problem player auto kick on spectating - LovelySoomro - 15.03.2016

problem solved
only i just ad this
PHP код:
SetSpawnInfoplayerid,NO_TEAM0, -2602.4817,-251.0630,19.2698,35.6153,00000); 
problem fixed