[Pomoc] [Hitno] Auto Respawn plugin
Results 1 to 9 of 9
  1. #1
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Crna Gora
    Karma
    4

    Default [Hitno] Auto Respawn plugin

    Koristim ovaj plugin (Auto respawn). Plugin dobro radi, jedina mana je sto spec respawn-uje...Kako moze spec da se ignorise? Ko ode u spec, da ga ne ozivljava.

    https://pastebin.com/XsneYX9V
    Last edited by [Mihailo]; 22-10-2017 at 10:38.
    .

  2. #2

  3. #3
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Crna Gora
    Karma
    4

    Default

    Ne druze. Ne treba meni oruzje vec da respawn plugin ignorise spec igrace. Npr. KGB botove, admine koji prate igrace..
    .

  4. #4
    Senior Member Array
    Join Date
    Aug 2014
    Karma
    5

    Default

    Pogledaj malo bolje... Taj cvar za oruzje je da li zelis da se igrac spawnuje samo s nozem...

  5. #5
    Senior Member Array
    Join Date
    Mar 2012
    Karma
    15

    Default

    Dodas provjeru u kodu gdje respawnuje igraca

    Code:
    if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
    return PLUGIN_HANDLED
    ili uradi ovako

    Code:
    public respawnuj( id )    
    {    
        if( ( !is_user_alive( id ) ) && ( cs_get_user_team(id) != CS_TEAM_SPECTATOR )  )    
        {
    Izvoli kod:
    PHP Code:
    #include < amxmodx >    
    #include < cstrike >  
    #include < hamsandwich >  
     
    native give_itemindex, const item[] );
         
    public 
    plugin_init( )        register_clcmd"say /respawn""respawnuj" );
    public 
    client_putinserverid )    set_task2.0"respawnuj"id );
    public 
    client_deathid )    set_task1.0"respawnuj"id ); 

    public 
    respawnujid ) {
            
        if( ( !
    is_user_aliveid ) ) && ( cs_get_user_teamid ) != CS_TEAM_SPECTATOR ) && ( cs_get_user_teamid ) != CS_TEAM_UNASSIGNED ) && ( is_user_connectedid ) ) )      
            
    ExecuteHamBHam_CS_RoundRespawnid );      
        return 
    PLUGIN_HANDLED;

    Last edited by Wtf. Kill me ! ^^; 22-10-2017 at 20:43.

  6. #6
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Crna Gora
    Karma
    4

    Default

    Hvala druze! Radi odlicno! )
    .

  7. #7
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Crna Gora
    Karma
    4

    Default

    E druze, ima jedan problem. Kada kucam kill, respawn-ujem se, a kada me neko ubije ne....
    .

  8. #8
    Senior Member Array
    Join Date
    Mar 2012
    Karma
    15

    Default

    Izvoli
    PHP Code:
    #include < amxmodx >     
    #include < cstrike >   
    #include < hamsandwich >   
            
    public plugin_init( )        register_clcmd"say /respawn""respawnuj" ), RegisterHamHam_Killed"player""Ham_PlayerKilled");
    public 
    client_putinserverid )    set_task2.0"respawnuj"id ); 
    public 
    Ham_PlayerKilledid set_task1.0"respawnuj"id );

    public 
    respawnujid ) { 
                 
        if( ( !
    is_user_aliveid ) ) && ( cs_get_user_teamid ) != CS_TEAM_SPECTATOR ) && ( cs_get_user_teamid ) != CS_TEAM_UNASSIGNED ) && ( is_user_connectedid ) ) )       
            
    ExecuteHamBHam_CS_RoundRespawnid );       
        return 
    PLUGIN_HANDLED

    sada bi trebalo da radi

  9. #9
    Senior Member Array
    Join Date
    Apr 2015
    Location
    Crna Gora
    Karma
    4

    Default

    Radi odlično! Svaka čast druže! Hvala ti!
    .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •