04.08.2010, 16:52
Quote:
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.
|
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;
}