death problem ?
#1

^^^^^^^^
Reply
#2

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;
}
Reply
#3

^^^^^^^^
Reply
#4

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.
-_-
Reply
#5

^^^^^^^^
Reply
#6

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.
Reply
#7

^^^^^^^^
Reply
#8

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

^^^^^^^^
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)