11.11.2014, 21:06
(
Последний раз редактировалось Alex Magaсa; 11.11.2014 в 23:02.
)
On topic of script add this:
Then put this in your script: (create a empty .pwn)
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.
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.