AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Who can help me change this plugin (https://forums.alliedmods.net/showthread.php?t=77195)

sb123 09-07-2008 10:00

Who can help me change this plugin
 
1 Attachment(s)
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)
 }




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

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