TogglePlayerSpectating Spawn Bug [+REP]
#1

Hello i use this https://sampwiki.blast.hk/wiki/TogglePlayerSpectating but when i use it in OnPlayerEnterCheckpointHe spawn mee automaticly idk where is the problem. I try it and as a command and he spawn mee again. soo This is the problem here Help mee please
Reply
#2

what are you trying to do? Are you spectating a player or a vehicle?
Reply
#3

PHP код:
    if(team[playerid] == TEAM_HUMAN)
    {
        new 
string[256];
        if(
Map[EvacType] == 1)
        {
            
TogglePlayerSpectating(playerid1);
            
InterpolateCameraPos(playerid0.00.010.01000.01000.030.010000CAMERA_MOVE);
            
//SetPlayerInterior(playerid,0);
            //SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738);
            
format(string,sizeof(string), ""COL_WHITE"["COL_BLUE"HUMAN"COL_WHITE"] %s Has rached to evac point with "COL_RED"%d kills"COL_WHITE" in dhis round! He will come human next round!",PlayerName(playerid), pInfo[playerid][pKillsIn1Map]);
            
SendClientMessageToAll(-1,string);
            
DisablePlayerCheckpoint(playerid);
            
CurePlayer(playerid);
            
GivePlayerXP(playerid,50);
            
pInfo[playerid][pEvac]++;
            
pInfo[playerid][pCoins]++;
            
//SetPlayerColor(playerid,COLOR_YELLOW);
        

This but not work.
Reply
#4

weird it works for me , can you test it with different coords? like this
pawn Код:
InterpolateCameraPos(playerid, 1173.1825, -1323.4525, 15.3953, 1220, -1323.4525, 15.3953, 5000, CAMERA_MOVE);
Reply
#5

Still not work i test him and with thos
pawn Код:
SetPlayerCameraPos(playerid, 250.0132, 1849.3933, 8.7734);
Reply
#6

AnyOne?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)