Raised This Month: $ Target: $400
 0% 

Who can help me change this plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sb123
Senior Member
Join Date: Jan 2007
Old 09-07-2008 , 10:00   Who can help me change this plugin
Reply With Quote #1

I hope that in the original plugin new
No.2
No.3
No.4
No.5
Award money

How to increase a bonus NO.2-NO.5

thx

PHP Code:
public ramdon_money(params[]){
 new 
killer=params[0]
 new 
oldamount=params[1]
 new 
amount
 
new killername[32]
 new 
random_range,randomvalue
 random_range
=(rewardedbig)?BIG_MONEY_INDEX:20//
 
for(;;){
  
randomvalue=random(random_range)
  
amount=rewards[randomvalue]
  if (
amount!=oldamount) break;
 }
 
get_user_name(killer,killername,31)
 if (
g_random>0){
  
g_random--
  
set_hudmessage(0,255,0,0.05,0.25,00.020.40.010.13)
  
show_hudmessage(0,"%s Kills enemy bravely !! And be award %6d Dollars Server",killername,amount)
  new 
param[2]
  
param[0]=killer 
  param
[1]=amount
  set_task
(0.3,"ramdon_money",0,param,1)
 } 
 else {
  if(
randomvalue>=BIG_MONEY_INDEXrewardedbig=1
  
//set_hudmessage(0,255,0,0.75,0.18,0, 1.0, 5.0, 0.1, 0.2, 1)
  
set_hudmessage(0,255,0,0.050.2500.026.00.010.13)
  
show_hudmessage(0,"%s Kills enemy bravely !! And be award %6d Dollars Server",killername,amount)
  
add_player_money(killer,amount)
  new 
msg[512]
  
format(msg,511,"^x03%s^x01 Kills enemy bravely !! And be award ^x04 %d ^x01 Dollars Server",killername,amount)
  
client_color(0,killer,msg)
 }

Attached Files
File Type: sma Get Plugin or Get Source (reward_sim.sma - 125 views - 18.6 KB)
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
 



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 03:06.


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