Raised This Month: $ Target: $400
 0% 

Stop RoundTimer?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sake
Senior Member
Join Date: Jul 2011
Old 07-29-2011 , 03:13   Re: Stop RoundTimer?
Reply With Quote #8

Exactly! You did rephrase it 100% correctly .

EDIT: But the code for your plugin is quite huge and I don't know which of the functions you use for respawning could help me out.

EDIT2: That's what I am doing right now:

PHP Code:
/*
* called on change of TeamInfo. Player gets hudmessage if he connects and is dead 
* that says he has to respawn manually.
*/
public teamAssigned()
{
    new 
id read_data(1);
    if(
id 32)
    {
        return;
    }
    if(
is_user_connected(id) && !is_user_hltv(id) && !is_user_bot(id))
    {
        new 
CsTeams:team cs_get_user_team(id);
        if(
team != CS_TEAM_CT && team != CS_TEAM_T)
        {
            return;
        }
        if(!
is_user_alive(id))
        {
            
set_hudmessage(25500, -1.00.3003.06.0);
            
show_hudmessage(id,"After selecting your model say /respawn to start the game!");
        }
    }

But that's not really user-friendly... I have also tried calling spawnPlayer:

PHP Code:
/*
* simple spawnPlayer method. spawns player.
*/
public spawnPlayer(id)
{
    if(
is_user_connected(id) && id <= 32)
    {
        
dllfunc(DLLFunc_Spawn,id);
    }

But it didn't work until a player has chosen his model...

Last edited by sake; 07-29-2011 at 03:40.
sake 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 00:50.


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