How would i make a infection
#1

Solved
Reply
#2

bump.....
Reply
#3

What you exactly mean with an infection, explain what should happen if a player has an infection
Reply
#4

if another player has a knife and it knifes the other team and that other team changes skin and becomes on that team member i just need the knife part
Reply
#5

as much I understood you want a script that transfer the killed player to the team of the killer if the weapon was a knife and the killed guy wasnt in the same team

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(reason == 4) // Knife
    {
        SetPlayerTeam(killerid, GetPlayerTeam(playerid));
    }
}
Reply
#6

so this going to change teams when that player dies?
Reply
#7

Yea it will.
Reply
#8

thanks so much it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)