24.09.2018, 17:51
Quote:
Just tested it in game.
Knowns bugs 1) When player is killed, his character rotates in 380 grades. (If he is facing forward, his actor faces backsward) 2) when I kill the same player after 5-10 seconds, there will not spawn another actor. (there's 1 character per death) 3) It won't recognise the skin. It spawned the character with skin id 299 |
2)
Код:
forward RemovePlayerDeathActor(playerid); public RemovePlayerDeathActor(playerid) { if(IsValidActor(death_actor[playerid])) DestroyActor(death_actor[playerid]); // Removes the "death actor". KillTimer(RemoveActorTimer[playerid]); return 1; }
Example:
Код:
new pskin = GetPlayerSkin(playerid);