#1

When a player die i want him to change to TEAM_ZOMBIE im using Gteam
how can i do it ? i tryed many thing didnt worked
(no need to change skin and w.e)
Reply
#2

Hi......
Reply
#3

make a gang or something
Reply
#4

i got gteam setter and all already i just need the command to change a dude of team and LOL i totally missed the name of the topic since i was on msn i send Hi. there and Set team player on msn
LOL
Reply
#5

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(Gteam[playerid] != TEAM_ZOMBIE) { Gteam[playerid] = TEAM_ZOMBIE; }
    // rest of your code or nothing :p
    return 1;
}
Reply
#6

That will set the human to zombie ? well i guess i needa change if... !=Team_zombie to human haha
Reply
#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    switch(Gteam[playerid])
    {
        case TEAM_...: // Change ... to the human team
        {
            Gteam[playerid] = TEAM_ZOMBIE; // Transfers human to zombie
        }
        case TEAM_ZOMBIE:
        {
             // Code here, if a zombie dies.
        }
    }
    return 1;
}
Reply
#8

Thank you :P
Reply
#9

Quote:
Originally Posted by matdav
Посмотреть сообщение
That will set the human to zombie ? well i guess i needa change if... !=Team_zombie to human haha
!=

means if(Gteam[playerid] != TEAM_ZOMBIE) { Gteam[playerid] = TEAM_ZOMBIE; }

it will change him to zombie

!= means if NOT Zombie
if he is zombie it will do nothing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)