Posts: 871
Threads: 114
Joined: May 2014
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
Posts: 220
Threads: 74
Joined: Dec 2011
Reputation:
0
what are you trying to do? Are you spectating a player or a vehicle?
Posts: 871
Threads: 114
Joined: May 2014
PHP код:
if(team[playerid] == TEAM_HUMAN)
{
new string[256];
if(Map[EvacType] == 1)
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, 0.0, 0.0, 10.0, 1000.0, 1000.0, 30.0, 10000, CAMERA_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.
Posts: 871
Threads: 114
Joined: May 2014
Still not work i test him and with thos
pawn Код:
SetPlayerCameraPos(playerid, 250.0132, 1849.3933, 8.7734);
Posts: 871
Threads: 114
Joined: May 2014