Raised This Month: $ Target: $400
 0% 

New round events + some other things


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

Thx for link.

So, i have modified my own code, and it works.. But, hm, i thought that it will work all the time for each other player, and i see that playa_id is still 6 (i have 6 players on the server)... so is whole idea dead? rawr... help me please!

PHP Code:
new playa_id;


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_logevent("round_start"2"1=Round_Start");
}

public 
client_putinserver(id) {
    
playa_id id;
    return 
playa_id;
}

public 
round_start() {
    
// 1 is my real ID, im the first player
    
client_print(1print_chat"[AMXX] NEW ROUND| Your ID is %d"playa_id);

EDIT
Problem sloved using spawn detection.
__________________
If you need English->Polish translation, PM me.

Last edited by AceDude; 10-13-2007 at 15:40.
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