player spectate, pls i need help
#2

pawn Код:
forward respawnFromSpec(playerid);
public respawnFromSpec(playerid) {
    TogglePlayerSpectating(playerid, false);
    SpawnPlayer(playerid);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason) {
    TogglePlayerSpectating(playerid, true);
    PlayerSpectatePlayer(playerid, killerid);
    SetTimerEx("respawnFromSpec", 5000, false, "d", playerid);
    return 0;
}
This code should work, you might need to add your SetSpawnInfo code and whatnot though.
Reply


Messages In This Thread
player spectate, pls i need help - by handerson - 24.06.2011, 14:09
Re: player spectate, pls i need help - by Calgon - 24.06.2011, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)