SA-MP Forums Archive
Death script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death script (/showthread.php?tid=408631)



Death script - REVO-RP - 18.01.2013

I need a good 0.3e death script like LS-RP or PR-RP....
Every other script i have tried to get on my server has failed :ґ(


Re: Death script - Infinity90 - 18.01.2013

https://sampforum.blast.hk/showthread.php?tid=187229


Re: Death script - REVO-RP - 18.01.2013

Whatever that i found one but im getting errors
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1869) : error 017: undefined symbol "SendDebugMessage"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(187 : error 017: undefined symbol "SendDebugMessage"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1896) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1904) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1912) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1920) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1927) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1935) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1942) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1950) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1957) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1965) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1972) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1980) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1983) : error 017: undefined symbol "IsAnOwnableCar"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1987) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(1995) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2246) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2271) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2296) : error 017: undefined symbol "NameIsRP"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2304) : error 017: undefined symbol "GetUnixTime"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(230 : error 017: undefined symbol "GetUnixTime"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2537) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2555) : error 017: undefined symbol "ApplyAnimationEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2566) : error 017: undefined symbol "SetPlayerHealthEx"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\gamemodes\PS-RP.pwn(2570) : error 017: undefined symbol "SetPlayerHealthEx"

the code is here
pawn Код:
public Health()
{
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gPlayerSpawned[i] == 1)
            {
                new Float:health;
                GetPlayerHealth(i, health);
                if(health < 30)
                {
                    if(IsPlayerInAnyVehicle(i))
                    {
                        RemovePlayerFromVehicle(i);
                        ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                        GameTextForPlayer(i, "~r~You are injured you need a medic !", 5000, 3);
                    }
                    ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                    GameTextForPlayer(i, "~r~You are injured you need a medic !", 5000, 3);

}
if(strcmp(cmd, "/acceptdeath", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SetPlayerHealth(playerid, 0);
            SendClientMessage(playerid, COLOR_RED, "** You have accepted death !");
        }



Re: Death script - GTLS - 05.07.2015

Код:
if(strcmp(cmd, "/acceptdeath", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            SetPlayerHealth(playerid, 0);
            SendClientMessage(playerid, COLOR_RED, "** You have accepted death !");
	    }
This should be like:
Код:
if(strcmp(cmd, "/acceptdeath", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            SetPlayerHealth(playerid, 0);
            SendClientMessage(playerid, COLOR_RED, "** You have accepted death !");
	    }
                  return 1;
              }