Raised This Month: $ Target: $400
 0% 

Store custom command and value for each client which is callable and changeable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 07-14-2006 , 18:02   Re: Store custom command and value for each client which is callable and changeable
Reply With Quote #8

O_o
Thanks a very lot!
+Karma for you!

Just some more things to master this plugin:
- If i write %s this is replaced with a clients name, can i
make something like %m to get replaced with users money?
- How do i make a 2nd column in the menu, where i can list prices?
- if i get the above 2 working i would love to know more about nVault

edit:
Code:
  case 0:
  {
   if(get_cvar_num("g_money")>8)
   {
    if(get_user_ammo(id, weapon_357, 0, 36)
    {
     client_print(id,print_chat,"[SC BUY AMMO] Your 357 Ammo Capacity is full!  (36)")
    }
    else
    {
     give_item(id,"ammo_357")
     g_money[id] -= 9
     client_print(id,print_chat,"[SC BUY AMMO] You bought six Rounds for the 357!  (-$9)")
    }
   }
   else
   {
    if(get_user_ammo(id, weapon_357, 0, 36)
    {
     client_print(id,print_chat,"[SC BUY AMMO] You do not have enough Money and your 357 Ammo Capacity is full!  ($9)  (36)")
    }
    else
    {
    client_print(id,print_chat,"[SC BUY AMMO] You do not have enough Money to buy six Rounds for the 357!  ($9)")
    }
   }
   return PLUGIN_HANDLED
  }
undefined symbol "weapon_357"
Now this one is very weird, as weapon_357 is, indeed, known as weapon_357.
I guess I used this function in a wrong way, or i need to "#include" something.

Last edited by Silencer123; 07-14-2006 at 18:08.
Silencer123 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode