Change team when die
#5

ok i have do what u have say but i have do SetPlayerSkin becuz its other skin and when i die it change me of gang but i cant move and my health is stuck at 0 and i die without the little "movie" i just change skin and stay at same place there the code :
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(team[playerid] == zombie)
   {
       team[playerid] = zombie;
       SetPlayerColor(playerid,grove);
       SetPlayerSkin(playerid,106);
       GameTextForPlayer(playerid, "~w~You have been switched to grove gang",2500,6);
   }
   else if(team[playerid] == grove)
   {
       team[playerid] = grove;
       SetPlayerColor(playerid,zombie);
       SetPlayerSkin(playerid,137);
       GameTextForPlayer(playerid, "~w~You have been switched to zombie",2500,6);
   }
}
Reply


Messages In This Thread
Change team when die - by matdav - 24.07.2009, 23:16
Re: Change team when die - by matdav - 24.07.2009, 23:43
Re: Change team when die - by Luciano - 25.07.2009, 00:36
Re: Change team when die - by matdav - 25.07.2009, 02:25
Re: Change team when die - by matdav - 25.07.2009, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)