15.08.2014, 11:51
Hello , I want when "TogglePlayerSpectating(playerid, 1)" the player will have a spec view on the Hospital, I tried this
But it does not spectate the place I want,
PS: I don't want to spectate a player or a vehicle,
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid, 1173.1825, -1323.4525, 15.3953); //focus on this (those are the hospital coords
TogglePlayerSpectating(playerid, 1); //focus on this
SetTimerEx("DeathSpecTimer", 7000, 0, "i", playerid);
PlayerData[playerid][pDeaths]++;
PlayerData[killerid][pKills]++;
PlayerData[playerid][pPosx]= 1173.1825;
PlayerData[playerid][pPosy]= -1323.4525;
PlayerData[playerid][pPosz]= 15.3953;
return 1;
}
PS: I don't want to spectate a player or a vehicle,