Instant kill with baseball bat?
#3

Quote:
Originally Posted by BP13
Посмотреть сообщение
You can make it so every weapon is a 1 hit/shot kill by using instagib 1 in the server.cfg. But no, not just for 1 weapon and you can't detect what part.
Yes you can, with some effort of course. This include, it's possible in this situation. http://forum.sa-mp.com/showthread.ph...erBehindPlayer. The code would be something like this.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
     if(newkeys & KEY_FIRE) {
          if(GetPlayerWeapon(playerid) == 5) {
              for(new i = 0; i < GetMaxPlayers(); i++ ) {
                    if(!IsPlayerConnected(i)) continue;
                    if(IsPlayerBehindPlayer(playerid, i, 1.0)) {
                         SetPlayerHealth(i, 0);
                    }
              }
          }
     }
     return 1;
}
Reply


Messages In This Thread
Instant kill with baseball bat? - by Shadow_Gengar - 04.08.2010, 16:19
Re: Instant kill with baseball bat? - by BP13 - 04.08.2010, 16:24
Re: Instant kill with baseball bat? - by Carlton - 04.08.2010, 16:52
Re: Instant kill with baseball bat? - by Kar - 04.08.2010, 16:57
Re: Instant kill with baseball bat? - by BP13 - 04.08.2010, 17:02
Re: Instant kill with baseball bat? - by Carlton - 04.08.2010, 17:07
Re: Instant kill with baseball bat? - by Daren_Jacobson - 04.08.2010, 18:03
Re: Instant kill with baseball bat? - by Carlton - 04.08.2010, 18:36
Re: Instant kill with baseball bat? - by Daren_Jacobson - 04.08.2010, 18:41
Re: Instant kill with baseball bat? - by Kar - 04.08.2010, 20:42

Forum Jump:


Users browsing this thread: 2 Guest(s)