When someone dies, he can walk around why is that
#3

On topic of script add this:
pawn Код:
#include <a_samp>



#define col_grey 0xADADADFF

Then put this in your script: (create a empty .pwn)
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:x, Float:y, Float:z;
    // Resetting their position:
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x, y, z);

    // Freezing them in death, he can not respawn:
    TogglePlayerControllable(playerid, 0);
    ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.1, 0, 1, 1, 1, 1, 1);

    // Informing them:
    SendClientMessage(playerid, col_grey, "{FF000}INFO:{FFFFF} You are dead, you can't move!");
    return 1;
}

Edit: my bad i had this on my script with other stuff (RP script): if someone is dead "LSMD" need to revive him just edit some stuff and forgot to remove sscanf2 define & zcmd define.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)