18.08.2014, 11:19
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(team[playerid] == TEAM_HUMAN)
{
new string[256];
if(Map[EvacType] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 249.8809, 1852.4695, 8.7625);
SetPlayerCameraPos(playerid, 250.0132, 1849.3933, 8.7734);
SetPlayerCameraLookAt(playerid, 249.8809, 1852.4695, 8.7625);
SetPlayerFacingAngle(playerid, 177.0050);
TogglePlayerSpectating(playerid, 1);
//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);
}
return 1;
}
The Problem is when i enter checkpoint he spawn mee.