SA-MP Forums Archive
no respawn dm not working - 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: no respawn dm not working (/showthread.php?tid=150663)



no respawn dm not working - iStarzz - 27.05.2010

but when only 1 is left alive, it does nothing.. :S
pawn Код:
forward counterleft();
public counterleft()
{
if(countalive[0] == 1)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(gTeam[i] == TEAM_DEATH)
    {
    GameTextForPlayer (i, "~r~mission failed!", 3000, 0);
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(gTeam[i] == TEAM_ALIVE)
    {
    GivePlayerMoney (i,object_bonus);
    PlayerPlaySound (i, 1062, 0.0, 0.0, 0.0);
    GameTextForPlayer (i, "mission passed!~n~~w~6500$", 3000, 0); }
    }
return 1;
}