SA-MP Forums Archive
Hide N Seek problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hide N Seek problems (/showthread.php?tid=159118)



Hide N Seek problems - Kitten - 12.07.2010

Solved


Re: Hide N Seek problems - (SF)Noobanatior - 12.07.2010

SetSpawnInfo(playerid,..);
SpawnPlayer(playerid);


Re: Hide N Seek problems - Kitten - 12.07.2010

not helpful


Re: Hide N Seek problems - Mr187 - 12.07.2010

Did you label the teams at all?


Re: Hide N Seek problems - Kitten - 12.07.2010

yes with Stock


Re: Hide N Seek problems - FreshKilla - 12.07.2010

Its very simple, but im going to show you an example you might need to change the Variables to your kind of script.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    switch(GetPlayerTeam(playerid)) // Change to gTeam if your using that as Team checking.
    {
        case TEAM_SEEKER: // Seeker Team
        {
            SetPlayerTeam(playerid,TEAM_HIDER); // Transfers the person to hider team after he dies.
        }
    }
    return 1;
}



Re: Hide N Seek problems - Kitten - 12.07.2010

so when that player that got turned into the seeker will change to the orginal team after he dies right?


Re: Hide N Seek problems - FreshKilla - 12.07.2010

Well basicly it checks when the person dies if the person is on TEAM_SEEKER aka Seeker Team and it'll transfer him to TEAM_HIDER aka the Hider Team


Re: Hide N Seek problems - Kitten - 12.07.2010

thank u so much


Re: Hide N Seek problems - Kitten - 12.07.2010

Dude its not working here the code

Quote:

switch(gTeam[playerid]) // Change to gTeam if your using that as Team checking.
{
case TEAM_ZOMBIE: // Seeker Team
{
SetPlayerTeam(playerid,TEAM_HUMAN); // Transfers the person to hider team after he dies.
Hider(playerid);
}
}
return 1;
}