Actor Help
#2

Use GetPlayerPos and stop the player position on variables (Float type),
then CreateActor on the same Location
PHP код:

public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    new 
Float:Pos[3];
    if(
weaponid == SLAP_GUN && issuerid == DildoSlapper)
    {
        
GameTextForPlayer(playerid"~r~DEAD~w~!"30005);
        
GameTextForPlayer(playerid"~g~KILLED~w~!"30005);
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
        
CreateActor(250Pos[0], Pos[1], Pos[2], 0.0);
        
Dead[playerid] = true;
        
currDead++;
        
TogglePlayerSpectating(playeridtrue);
        
PlayerSpectatePlayer(playeridissueridSPECTATE_MODE_NORMAL);
        if(
currDead == (FixPlayers() - 1))
        {
            
EndGame();
        }
    }
    return;

Reply


Messages In This Thread
Actor Help - by aoky - 08.02.2017, 17:35
Re: Actor Help - by Eoussama - 08.02.2017, 17:38
Re: Actor Help - by GoldenLion - 08.02.2017, 17:39
Re: Actor Help - by aoky - 08.02.2017, 17:45
Re: Actor Help - by aoky - 08.02.2017, 17:52
Re: Actor Help - by Eoussama - 08.02.2017, 18:06
Re: Actor Help - by aoky - 08.02.2017, 18:35
Re: Actor Help - by Eoussama - 08.02.2017, 18:50
Re: Actor Help - by aoky - 08.02.2017, 19:04
Re: Actor Help - by Eoussama - 08.02.2017, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)