Unable to kill players during a tournament.
#1

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)