Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: NeskWriter on March 11, 2013, 10:21:49 pm

Title: Nesk became a zombie. Take this.
Post by: NeskWriter on March 11, 2013, 10:21:49 pm
Hello. It's hard to write, because I haven't been here for a while. After I was infected I became a zombie, but I don't drink human's blood, I like orange juice mo'. So, I'll visit you once a month or more, cuz people say that's better to learn programming languages when you are young. I'd like to share my healing system. Yeah lol, but money amount to pay depends from hp u need, that's for nerdos who's gonna break their display for paying $100000 to take 1hp. I hope Aled won't call this script a bull shit, and:
[pawn]stock SellPlayerHealth(playerid)
{
   new Float:phealth, Float:product1, Float:product2;
   new pmoney = GetPlayerMoney(playerid);
   new money2pay[256];
   GetPlayerHealth(playerid, phealth);
   if(phealth <= 99)
   {
      product1 = floatsub(100, phealth);
      product2 = floatmul(product1, 5);//My price for 1hp is $5, change "5" on your integer if you want
      format(money2pay, sizeof(money2pay), "%0.2f", product2);
      new money2payfinal = strval(money2pay);
      if(money2payfinal <= pmoney)
      {
          SetPlayerHealth(playerid, 100);
          SetPlayerMoney(playerid, pmoney - money2payfinal);
         new string2[256];
         format(string2, sizeof(string2), "You have been healed for $%d", money2payfinal);
         SendClientMessage(playerid, 0xFFFFFFAA, string2);
      }
      else
      {
          new string3[256];
          format(string3, sizeof(string3), "You don't have enough money (you need $%d)", money2payfinal);
          SendClientMessage(playerid, 0xFF0000AA, string3);
      }
   }
   else
   {
       SendClientMessage(playerid, 0xFF0000AA, "You don't need to heal yourself");
   }
}[/pawn]
Title: Re: Nesk became a zombie. Take this.
Post by: Fire_Head on March 12, 2013, 12:08:08 am
But You Say U leveing ??
Title: Re: Nesk became a zombie. Take this.
Post by: Fuzzy168 on March 12, 2013, 01:43:08 am
I agree with "young people should learn programming".. Nice script btw..
Title: Re: Nesk became a zombie. Take this.
Post by: NeskWriter on March 12, 2013, 07:26:47 pm
But You Say U leveing ??

Quote
I became a zombie
Quote
I'll visit you once a month or more

I am still "dead", but I hope I can visit you sometimes, a lot of time I spend in gym and I'm preparing to pass the 1st exams in my studying process. I learn C between studying and gym  ;)
Title: Re: Nesk became a zombie. Take this.
Post by: mrockxkingbutt on March 12, 2013, 09:30:43 pm
You Are Still Dead LOL
GOOD LUCK WITH STUDIES
Title: Re: Nesk became a zombie. Take this.
Post by: USA.Ghost on March 15, 2013, 08:30:06 am
I agree with "young people should learn programming".. Nice script btw..
lol im young and... YOU DONT KNOW HOW MUCH PROGRAMMING LANGUAGES I KNOW, INCLUDING:
Code: [Select]
ms vb 2010
pawn
sq(i dont know it a lot, only basics)
ntsys(cmd)
... (I KNOW EVEN MORE)
Title: Re: Nesk became a zombie. Take this.
Post by: VS on March 15, 2013, 08:35:12 am
I agree with "young people should learn programming".. Nice script btw..

how old are you
Title: Re: Nesk became a zombie. Take this.
Post by: stormeus on March 15, 2013, 08:57:30 pm
lol im young and... YOU DONT KNOW HOW MUCH PROGRAMMING LANGUAGES I KNOW, INCLUDING:
Code: [Select]
ms vb 2010
pawn
sq(i dont know it a lot, only basics)
ntsys(cmd)
... (I KNOW EVEN MORE)

Okay, that's good for you. I normally wouldn't have a problem with this since I was in the same boat at one point, but it seems like you're just showing off now; your signature isn't even valid Pawn or C#. If it were valid, you would have simply created an infinite loop that hangs the script.
Title: Re: Nesk became a zombie. Take this.
Post by: USA.Ghost on March 16, 2013, 08:36:10 am
Okay, that's good for you. I normally wouldn't have a problem with this since I was in the same boat at one point, but it seems like you're just showing off now; your signature isn't even valid Pawn or C#. If it were valid, you would have simply created an infinite loop that hangs the script.

But the signature was a joke lol if i want to post a real script, why wouldnt i post it in topics instead of signature lol
Title: Re: Nesk became a zombie. Take this.
Post by: Fuzzy168 on March 16, 2013, 09:30:40 am
I agree with "young people should learn programming".. Nice script btw..

how old are you
I'm currently 15 but I learned scripting when I was 13.
Title: Re: Nesk became a zombie. Take this.
Post by: VS on March 16, 2013, 09:35:39 pm
I agree with "young people should learn programming".. Nice script btw..

how old are you
I'm currently 15 but I learned scripting when I was 13.

my question to you is young people?