Kill A Player With A Certain Weapon?
#1

what do i put after if so it kills someone with a heat seaking missle id 36?
Reply
#2

..?


.
Reply
#3

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
..?


.
okay i bet youre good at scripting what i meant is how can i make it so it sets a players health to 0 but not all players just players with a heat seeking rocket launcher which is id 36 if u dont know
Reply
#4

OnPlayerDeath:

if(GetPlayerWeapon(killerid) == WEPID)
{
SetPlayerHealth to 0 here with killerid as playerid
}
Reply
#5

Quote:
Originally Posted by lSCARl
Посмотреть сообщение
okay i bet youre good at scripting what i meant is how can i make it so it sets a players health to 0 but not all players just players with a heat seeking rocket launcher which is id 36 if u dont know
oh so something like

if you dont use a hs rocket launcher, u die?
Reply
#6

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
oh so something like

if you dont use a hs rocket launcher, u die?
opposite of that if the player has a hs rocket launcher he dies
Reply
#7

ah!

lemmy make a lil script
Reply
#8

i just did this quickly, might work

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerWeapon(playerid) == WEAPON_HEATSEEKINGROCKET) {
    Kill(playerid);
    return 1;
}
Reply
#9

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
OnPlayerDeath:

if(GetPlayerWeapon(killerid) == WEPID)
{
SetPlayerHealth to 0 here with killerid as playerid
}
Dude are you blind? i already made u a nice little snippet
Reply
#10

OnPlayerDeath is called when someones health is 0...

That's like defining playerid as playerid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)