SA-MP Forums Archive
Unable to kill players during a tournament. - 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)
+--- Thread: Unable to kill players during a tournament. (/showthread.php?tid=499392)



Unable to kill players during a tournament. - rangerxxll - 08.03.2014

So I have a system that puts a player into a tournament. And for some reason they can kill eachother with weapons, but not fists or melee. What's causing this?

This is what happens when the timer gets called, therefor putting them into a game. I put NO_TEAM for setplayer team, so shouldn't they still kill each other with fists?
pawn Код:
forward RoundStartTimer(playerid);
public RoundStartTimer(playerid)
{
    if(LobbyCount > 1)
    {
        for(new i; i != GetMaxPlayers(); i++)
        {
            if(IsPlayerReady[i])
            {
                SetPlayerVirtualWorld(i, 0);
                updatetd(i);
                SetPlayerTeam(i, NO_TEAM);
                new rand = random(sizeof(rSpawns));
                SetPlayerPos(i, rSpawns[rand][0], rSpawns[rand][1], rSpawns[rand][2]);
                SetCameraBehindPlayer(i);
                GameProgress = true;
                LobbyCount = 0;
                TogglePlayerControllable(i, 1);
            }
        }
        new string[128];
        format(string,sizeof(string), "Total players: %d.", players);
        SendClientMessageToAll(COLOR_GREY, string);
        ShowNameTags(0);
        SendClientMessage(playerid, COLOR_GREEN, "The Hunger games is prepairing to start, please be patient... (Name tags disabled)");
        for (new i=0;i<sizeof(pickup);i++)
        {
            DestroyPickup(pickup[i]);
        }

    }
    return 1;
}