Raised This Month: $ Target: $400
 0% 

Spawn with admin_freelook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-09-2011 , 23:33   Re: Spawn with admin_freelook
Reply With Quote #2

Try using this:
PHP Code:
    new id read_data(1)
    new 
team[2]
    
read_data(2team1)
    switch(
team[0])
    {
            case 
'U'druzyna_gracza[id] = 0
            
case 'T'druzyna_gracza[id] = 1
            
case 'C'druzyna_gracza[id] = 2
            
case 'S'druzyna_gracza[id] = 3
    

PHP Code:
if (get_pdata_int(idOFFSET_TEAM5) != druzyna_gracza[id] && druzyna_gracza[id] != && druzyna_gracza[id])
           
set_pdata_int(idOFFSET_TEAMdruzyna_gracza[id], 5)  // don't know why you ever need this.

set_pev(idpev_deadflagDEAD_RESPAWNABLE
dllfunc(DLLFunc_Thinkid
dllfunc(DLLFunc_Spawnid
set_pev(idpev_iuser10

You can also try using
ExecuteHamB(Ham_CS_RoundRespawn, id)
__________________


Last edited by SonicSonedit; 05-09-2011 at 23:35.
SonicSonedit 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 04:18.


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