• Welcome to Vice City Multiplayer.
 

Tamas Help me.....

Started by Punjabi, October 15, 2008, 01:18:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Punjabi

Hey i am making commands related some buystuff and want idea that how can i edit commands like !buyfood and when i bought food how can i save it to my name like when i type !mystuff it will show food bought by me......

Example::
In server
Punjabi type !buyfood <Noodles>Than it will show that i bought noodles and when i type !mystuff like this
Punjabi type !mystuff
!mystuff You have noodles..
acatually i want that when i buy food it will add to my other command to !mystuff
and then other command with which i can eat it..like !eat <noodles>


I just want an idea thats all or if u are interested in posting ur script u r free to post here below..
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

thijn

Eeh what are u using? WSV GUS SANSAN???

Try to save the food in a ini.
somthing like:
Code (GUS) Select

elseif ($2 == !buyfood) {
if ($3 == noodles) {
!writeini -n vcmp.food.ini NOODLES %name yes
vcmp.msg %id You bought noodles.
}
}
elseif ($2 == !mystuff) {
if ($readini(vcmp.food.ini,NOODLES,%name) == yes) {
vcmp.msg %id You got Noodles.
}
else vcmp.msg %id You dont have anything!
}
elseif ($2 == !eat) {
if ($3 == noodles) {
if ($readini(vcmp.food.ini,NOODLES,%name) == yes) {
vcmp.msg %id You eat some noodles.
}
else vcmp.msg %id You dont got any noodles!
}
}

Or something like that, NOTE: Untested


Punjabi

Hey thijn i am using WSV although thanks for posting and giving me idea how to make such type of commands.. ;)

Cya
Punjabi_goli
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

thijn



Chezor

man its easy for gus. Playing with INI files  :D i hope you can convert to WSV  ::)

Scripts: Fuel system in vehicles, Speedometer, Spawnback, Improved Copwork, Improved Jailing, Improved phone with sms, and many more. Coming soon..

[CB]CsabaBad

hy!
somebody would be able to write a script like this than the previous wsw hez?
very much thanks