346
Modification Help / Re: And another weapon pack
« on: July 26, 2010, 03:04:19 PM »
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
by the way it's currently looking for a "1" or a "2" after /potion
change the "1" in "case 1" to whatever you want if you want to make it "health" or whatever
"case health" would make it look for "/potion health"
%choice is whatever has been said after /potion
/potion mayonnaise
mayonnaise would then be %choice
//p&m.cs
function servercmdpotion(%client,%choice)
{
echo("p&m");
switch(%choice)
{
case 1:
//potion 1 stuff
echo("Potion1");
if(%client.redberry > 0 && %client.blueberry > 0)
{
echo("blu and red");
}
else
{
echo("Else");
}
case 2:
//potion 2 stuff
echo("Potion2");
default:
messageClient(%client,'','1. Health Potion - Red Berry(1), Glow Berry (1)');
}
}
function servercmdpick(%client)
{
%client.redberry = 100;
%client.blueberry = 100;
}
I already heard that theory. Until the infinite rotation is okay, maybe we can make energy out of that rotation, someday. But the thing with the world hunger is crap.
I meant the... strange-looking-face that looks like "I c what u did thar".

talent i stared at your avatar and said does this guy think he is doing it and i said f that.>:)
Badass moment sponsered bye Shadowed999,Badspot,Blockhead22230,and Leah