Nokill inside a house
#1

Hello!
Do someone know how i make people immortal in houses?

i use http://forum.sa-mp.com/showthread.ph...amic+Apartment

Please help me i need help
Reply
#2

pawn Код:
public OnPlayerTakeDamage( playerid, issuerid, Float: amount, weaponid )
{
    if( issuerid != INVALID_PLAYER_ID )
    {
        if( GetPlayerInterior( playerid ) != 0 ) SetPlayerHealth( playerid, 100.0 );
    }
    return 1;
}
// This will work only if someone shoots someone else.
In case you need infinity health even from explosions or whatever inside the interior make a godmode with timer.
Reply
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
[
In case you need infinity health even from explosions or whatever inside the interior make a godmode with timer.
Or just:
pawn Код:
SetPlayerHealth(playerid, 99999.0);
Reply
#4

Is that only for the "house world" or for all worlds, and where will i put it in, the main script or the filterscript? (i am new in scripting)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)