Author Topic: Tamas Help me.....  (Read 4294 times)

0 Members and 1 Guest are viewing this topic.

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Tamas Help me.....
« on: October 15, 2008, 03: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..
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Tamas Help me.....
« Reply #1 on: October 15, 2008, 06: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

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Tamas Help me.....
« Reply #2 on: October 16, 2008, 04: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
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Tamas Help me.....
« Reply #3 on: October 16, 2008, 11:17:40 am »
Ok

Offline Chezor

  • Wiseguy
  • **
  • Posts: 90
  • RPG Planet Scripter
    • View Profile
    • RPG Planet
Re: Tamas Help me.....
« Reply #4 on: October 16, 2008, 08:12:26 pm »
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..

Offline [CB]CsabaBad

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Re: Tamas Help me.....
« Reply #5 on: November 14, 2008, 09:34:33 pm »
hy!
somebody would be able to write a script like this than the previous wsw hez?
very much thanks