Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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]
-
But You Say U leveing ??
-
I agree with "young people should learn programming".. Nice script btw..
-
But You Say U leveing ??
I became a zombie
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 ;)
-
You Are Still Dead LOL
GOOD LUCK WITH STUDIES
-
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:
ms vb 2010
pawn
sq(i dont know it a lot, only basics)
ntsys(cmd)
... (I KNOW EVEN MORE)
-
I agree with "young people should learn programming".. Nice script btw..
how old are you
-
lol im young and... YOU DONT KNOW HOW MUCH PROGRAMMING LANGUAGES I KNOW, INCLUDING:
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.
-
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
-
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.
-
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?