Raised This Month: $51 Target: $400
 12% 

plugin say /awp


Post New Thread Reply   
 
Thread Tools Display Modes
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-01-2011 , 04:27   Re: plugin say /awp
Reply With Quote #11

http://wiki.amxmodx.org/Configuring_...ecific_Plugins
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
RelaxMazteR
Member
Join Date: Jul 2009
Location: Sweden
Old 07-01-2011 , 04:47   Re: plugin say /awp
Reply With Quote #12

try this
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich> 

new g_pCvar_Price;
new 
bool:awpmap false;

public 
plugin_init() 
{
         
register_plugin("Buy AWP""0.0.1""dinnk.");
    
         
register_clcmd("say /awp""CmdAwp");
    
         
g_pCvar_Price register_cvar("awp_deagle_price""15000");
     
         
RegisterHamHam_Spawn"player""FwdHamPlayerSpawn"); 
}

public 
plugin_cfg(){
    new 
szMapName[64];
    
get_mapname(szMapName63);
    
    if(
equali(szMapName"awp_"))
        
awpmap true;
}

public 
FwdHamPlayerSpawn(id) {
    if(!
is_user_alive(id) || !awpmap)
        return;
    
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
give_item(id"weapon_awp")
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammo(idCSW_AWP30)
    
cs_set_user_bpammo(idCSW_DEAGLE35)
}

public 
CmdAwp(id)
{
         new 
iMoney cs_get_user_money(id);
         new 
iPrice get_pcvar_num(g_pCvar_Price);
    
         if( !
is_user_alive(id) )
         {
        
client_print(idprint_chat"* You need to be alive !");
        return 
PLUGIN_HANDLED;
         }
    
         if( 
iMoney iPrice )
         {
        
client_print(idprint_chat"* You need more money ! ($%i)"iPrice);
        return 
PLUGIN_HANDLED;
         }
    
         
give_item(id"weapon_awp");
         
give_item(id"weapon_deagle");
         
cs_set_user_bpammo(idCSW_AWP30);
         
cs_set_user_bpammo(idCSW_DEAGLE35);
    
         
client_print(idprint_chat"* You bought an AWP & Deagle for $%i !"iPrice);
         
cs_set_user_money(idiMoney iPricetrue);
         return 
PLUGIN_HANDLED;

RelaxMazteR is offline
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 07-01-2011 , 04:55   Re: plugin say /awp
Reply With Quote #13

with the awp automatically on awp maps i made it but with the price no ,how can i change the price in 5000$,because i try but doesen't work,15000$ is actuallly...(Relax,the plugin wich you give it to me it's work,but i want to change the price in 5000$ i try to change it where is "15000" and i compiled again but doesen't work,is 15000$

Last edited by c0ma; 07-01-2011 at 04:57.
c0ma is offline
Send a message via Yahoo to c0ma
RelaxMazteR
Member
Join Date: Jul 2009
Location: Sweden
Old 07-01-2011 , 05:04   Re: plugin say /awp
Reply With Quote #14

use the cvar. awp_deagle_price
RelaxMazteR is offline
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 07-01-2011 , 05:10   Re: plugin say /awp
Reply With Quote #15

yes,i used it and i compiled again,but doesen't work i change it in "5000" and i compiled and 15000$ is actually,how can i change it?!
c0ma is offline
Send a message via Yahoo to c0ma
c0ma
Junior Member
Join Date: Jun 2011
Location: Greece (Creta-Porto Elou
Old 07-01-2011 , 05:31   Re: plugin say /awp
Reply With Quote #16

done,the price is 5000$ now thank you all for help...
c0ma is offline
Send a message via Yahoo to c0ma
Reply



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 22:51.


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