Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started 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.
-
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)
-
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 :)
-
I am starting thinking that everything is already made by someone :D
-
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 !
-
ty man :D
-
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)
-
Guyz pls don't start a war in this topic :-\
-
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.