little problem player auto kick on spectating
#1

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;

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)