10.12.2017, 13:15
PHP код:
#define FILTERSCRIPT
#include <a_samp>
new bool:PlayerPaused;
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerPaused = false;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_ESC))
{
PlayerPaused = true;
if(PlayerPaused)
{
SetPlayerHealth(playerid, 0);
}
}
return 1;
}