25.07.2009, 02:45
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); } }