Raised This Month: $ Target: $400
 0% 

New round events + some other things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AceDude
Junior Member
Join Date: Jul 2006
Location: Wroclaw, Poland
Old 10-13-2007 , 13:01   New round events + some other things
Reply With Quote #1

Im making my first serious plugin and i have my first serious problem.
Thing that plugin should do is finding user id and using in function called every round to add $. Amount of $ will be diffrent for every user.


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    new 
player_id id
//How to add parameter here?
    
register_logevent("round_start()"2"1=Round_Start")
}


public 
round_start(player_id) {
    
client_print(player_idprint_chat"[AMXX] NOWA RUNDA---------------------<<<")
    
cs_set_user_money(player_idcs_get_user_money(player_id) + 6666)
    
client_print(player_idprint_chat"[AMXX] CSN-SQL: Dodano 6666$")


Last edited by AceDude; 10-13-2007 at 13:28.
AceDude 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 01:23.


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