SA-MP Forums Archive
death problem ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: death problem ? (/showthread.php?tid=423281)



death problem ? - Ananisiki - 17.03.2013

^^^^^^^^


Re: death problem ? - Denying - 17.03.2013

I don't know without seeing any code, but I'd suggest using a boolean named "IsDead" which will be storing the data about all the players. Like..

Global boolean "new bool:IsDead[MAX_PLAYERS];"
pawn Код:
OnPlayerDeath(...)
{
    IsDead[playerid] = true;
    return 1;
}

OnPlayerSpawn(..)
{
    IsDead[playerid] = false;
    return 1;
}



Re: death problem ? - Ananisiki - 17.03.2013

^^^^^^^^


Re: death problem ? - Denying - 17.03.2013

Change, OnPlayerConnnect isDead[playerid] =1; to isDead[playerid]=0;

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 71 seconds.
-_-


Re: death problem ? - Ananisiki - 17.03.2013

^^^^^^^^


Re: death problem ? - Denying - 17.03.2013

To be honest, I don't know.. it all seems to be fine at the moment..

EDIT: Wait... what's this?
pawn Код:
OnPlayerConnect(playerid)
{  
    public OnPlayerConnect(playerid)
    {
        sit[playerid] = 0;    
        IsInAdminArea[playerid] = 0;    
        PreloadAnims(playerid);    
        isDead[playerid] = 1;
OnPlayerConnect(playerid)
{
public OnPlayerConnect(playerid) ?!?!

Change it to:
pawn Код:
public OnPlayerConnect(playerid)
{
    sit[playerid] = 0;    
    IsInAdminArea[playerid] = 0;    
    PreloadAnims(playerid);    
    isDead[playerid] = 1;
But I doubt that will fix anything.


Re: death problem ? - Ananisiki - 17.03.2013

^^^^^^^^


Re: death problem ? - Denying - 17.03.2013

It might be that, how many/which FSs do you have?
And what do you mean by "other things"?


Re: death problem ? - Ananisiki - 17.03.2013

^^^^^^^^


Re: death problem ? - Denying - 17.03.2013

Ahm... try changing the variable name from "isDead" to "Dead" or whatever..