Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Punjabi on October 15, 2008, 02:18:26 PM

Title: Tamas Help me.....
Post by: Punjabi on October 15, 2008, 02:18:26 PM
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..
Title: Re: Tamas Help me.....
Post by: thijn on October 15, 2008, 05:39:20 PM
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
Title: Re: Tamas Help me.....
Post by: Punjabi on October 16, 2008, 03:05:37 AM
Hey thijn i am using WSV although thanks for posting and giving me idea how to make such type of commands.. ;)

Cya
Punjabi_goli
Title: Re: Tamas Help me.....
Post by: thijn on October 16, 2008, 10:17:40 AM
Ok
Title: Re: Tamas Help me.....
Post by: Chezor on October 16, 2008, 07:12:26 PM
man its easy for gus. Playing with INI files  :D i hope you can convert to WSV  ::)
Title: Re: Tamas Help me.....
Post by: [CB]CsabaBad on November 14, 2008, 07:34:33 PM
hy!
somebody would be able to write a script like this than the previous wsw hez?
very much thanks