help plz!
#3

On Top
pawn Код:
new Death[MAX_PLAYERS];
under OnPlayerDeath
pawn Код:
Death[playerid] = 1;
Under OnPlayerCommand
pawn Код:
//Under 911 command add this
    if(Death[playerid] == 1)
    {
        //Means player is dead
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not dead");
    }
    return 1;
}
Under OnPlayerSpawn
pawn Код:
Death[playerid] = 0;
I just gave you an idea, It's not going to work properly as player have to type the command after he's dead and before he spawns else he can't type the command, For that you can create a time of 10 seconds..
Reply


Messages In This Thread
help plz! - by Airblog - 09.10.2014, 14:27
Re: help plz! - by YanLanger - 09.10.2014, 14:31
Re: help plz! - by Rudy_ - 09.10.2014, 15:38
Re: help plz! - by Airblog - 15.10.2014, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)