Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: NeskWriter on November 09, 2012, 04:49:26 pm

Title: Hello guys! Caesar salad for all!
Post by: NeskWriter on November 09, 2012, 04:49:26 pm
After minding progress up I made "Restaurant on the run"

All u need:

change public OnPlayerText to the next:

public OnPlayerText(playerid, text[])
[pawn]{
   if (strcmp(text, "Caesar salad please", true)==0 && GetPlayerMoney(playerid) >=100)
   {
        SendClientMessage(playerid, 0xFF0000AA, "Waiter: Here your salad, sir. Bon appetite!");
        SetPlayerHealth(playerid, 100);
        SetPlayerMoney(playerid, GetPlayerMoney(playerid)-100);
        SendClientMessage(playerid, 0xFF0000AA, "You got paid $100 for salad!");
      return 1;
   }
   else if(strcmp(text, "Caesar salad pls!", true)==0 && GetPlayerMoney(playerid) <=99)
   {
        SendClientMessage(playerid, 0xFF0000AA, "Sorry, but we do not feed the homeless. Go work sir! This salad costs $ 100.");
        return 1;
   }
   return 1;
}[/pawn]
Now, saying "Caesar salad please" you will restore your health

Bon appetite!
(http://img836.imageshack.us/img836/5931/cooks.jpg)

P.S. This is an example of text which can apply functions.
Title: Re: Hello guys! Caesar salad for all!
Post by: aledark24 on November 10, 2012, 03:23:07 am
Mmm  :o i create a food system better so,tomorrow i post and give the topic here.
contain buy in all pizza place and eat everywhere
 8)
Title: Re: Hello guys! Caesar salad for all!
Post by: heekz.shadow on November 10, 2012, 09:16:56 am
I made a full RPG system with everything, containing EMP and police spikestrips being thrown out of the car, we do not care about you aledark24. This is his topic, we shall support him.


This is a nice script :)
Title: Re: Hello guys! Caesar salad for all!
Post by: NeskWriter on November 10, 2012, 10:04:15 am
I am starting thinking that everything is already made by someone :D
Title: Re: Hello guys! Caesar salad for all!
Post by: sseebbyy on November 10, 2012, 11:09:43 am
I am starting thinking that everything is already made by someone :D

And if is, what ?
If you made it in your style, with new ideas and more, will be a new script ;)

Good Luck !
Title: Re: Hello guys! Caesar salad for all!
Post by: NeskWriter on November 10, 2012, 11:44:30 am
ty man  :D
Title: Re: Hello guys! Caesar salad for all!
Post by: aledark24 on November 10, 2012, 12:55:04 pm
I made a full RPG system with everything, containing EMP and police spikestrips being thrown out of the car, we do not care about you aledark24. This is his topic, we shall support him.


This is a nice script  :o


I create new commands and you say nice copy  :o
other create one command and you say nice job
you are very stupid or what? Shadow

http://forum.vicecitymultiplayer.com/index.php?topic=5268.0 (http://forum.vicecitymultiplayer.com/index.php?topic=5268.0)
Title: Re: Hello guys! Caesar salad for all!
Post by: NeskWriter on November 10, 2012, 06:21:19 pm
Guyz pls don't start a war in this topic  :-\
Title: Re: Hello guys! Caesar salad for all!
Post by: heekz.shadow on November 10, 2012, 07:06:38 pm
His ideas are unique, yours are not ( aledark24 ). It's not about buying food, but actually having more choices than pizza,coffee... etc..

No. I am not stupid.