05.09.2010, 14:51
(
Последний раз редактировалось iggy1; 05.09.2010 в 15:02.
)
Yes but thats not enough info is it?
Try this,
Check this page,
https://sampwiki.blast.hk/wiki/PlayerSpectatePlayer
Try this,
pawn Код:
Speccing(playerid)
{
new Float:Health;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
GetPlayerHealth(i, Health);
if(Health < 1) continue;
if(mTeam[playerid] == mTeam[i])
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, i);
break;
}
if(TeamCounting[mTeam[playerid]-1] == 0)
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, i);
break;
}
}
}
https://sampwiki.blast.hk/wiki/PlayerSpectatePlayer