Author Topic: Headshot help  (Read 5577 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Headshot help
« on: November 16, 2011, 11:40:38 am »
I want to create a script for headshot. here is my script..
[pawn]   else if(bodypart == case:6)//here is the errors.
   {
       new Msg[128];
      GameTextForPlayer(killerid, "Headshot!");
      IncPlayerKills(killerid);
      IncPlayerDeath(playerid);
      IncPlayerCash(killerid, 500);
      DecPlayerCash(playerid, 200);
      format(Msg, sizeof(Msg), "%s headshoted %s.", gPlayers[killerid], gPlayers[playerid]);
      BotMessageAll(Blue, Msg);
      return 1;
   }
[/pawn]Something wrong? how to put it?
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Headshot help
« Reply #1 on: November 16, 2011, 02:51:58 pm »
[pawn]bodypart == case:6[/pawn]

case is for switch blocks only.

[pawn]bodypart == 6[/pawn]
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Headshot help
« Reply #2 on: November 17, 2011, 04:11:16 am »
so that mean my script should be something like this?
[pawn]   else if(bodypart == 6)
   {
       new Msg[128];
      GameTextForPlayer(killerid, "Headshot!");
      IncPlayerKills(killerid);
      IncPlayerDeath(playerid);
      IncPlayerCash(killerid, 500);
      DecPlayerCash(playerid, 200);
      format(Msg, sizeof(Msg), "%s headshoted %s.", gPlayers[killerid], gPlayers[playerid]);
      BotMessageAll(Blue, Msg);
      return 1;
   }[/pawn]
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Headshot help
« Reply #3 on: November 17, 2011, 02:57:55 pm »
Yes.
Do not PM me for support.




Offline icecream

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Re: Headshot help
« Reply #4 on: November 17, 2011, 03:09:19 pm »
Yes.
Btw lol then what are you doing?  ;)

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Headshot help
« Reply #5 on: November 18, 2011, 12:21:49 am »
Uh, contributing to the community. :-\
Do not PM me for support.




Offline icecream

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Re: Headshot help
« Reply #6 on: November 19, 2011, 08:18:43 pm »
Uh, contributing to the community. :-\
I didn't say to you Errick  ::)

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Headshot help
« Reply #7 on: November 20, 2011, 01:45:03 am »
Do not PM me for support.




Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Headshot help
« Reply #8 on: November 20, 2011, 01:54:27 am »
@icecream

You're weird.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Headshot help
« Reply #9 on: November 20, 2011, 02:40:32 pm »
He's not just weird, he is the most weirdest icecream I've ever seen in my entire life.!!
I'm beginning to feel like a Lag God, Lag God

Offline icecream

  • Street Thug
  • *
  • Posts: 24
    • View Profile
Re: Headshot help
« Reply #10 on: November 20, 2011, 09:40:00 pm »
He's not just weird, he is the most weirdest icecream I've ever seen in my entire life.!!

Looks like the people have started knowing me well.......

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Headshot help
« Reply #11 on: November 21, 2011, 08:23:58 am »
Topic locked. Case solved.  :P
I'm beginning to feel like a Lag God, Lag God