Raised This Month: $ Target: $400
 0% 

Respawn Team Toucher


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 09-08-2017 , 14:38   Respawn Team Toucher
Reply With Quote #1

I want to execute respawn only for different team can someone help me?

For example : if toucheR team tero touch toucheD team tero get a toucheR respawn

This code respawn all touchers

Code:
#include < amxmodx > 
#include < engine >
#include <hamsandwich> 

new gOldTouch[33][33]
new Float:gDiff = 0.1 
public plugin_init( ) 
{ 
    register_plugin( "touch team", "1.0", "code" ); 
    register_touch("player","player","fn_PlayerTouchPlayer");
} 
public fn_PlayerTouchPlayer(ToucheR_id,ToucheD_id)
{
    if(get_systime() - gOldTouch[ToucheR_id][ToucheD_id] > gDiff || (get_systime() - gOldTouch[ToucheD_id][ToucheR_id] > gDiff))
    {
        gOldTouch[ToucheR_id][ToucheD_id] = get_systime()
        gOldTouch[ToucheD_id][ToucheR_id] = get_systime()
        
        ExecuteHamB(Ham_CS_RoundRespawn, ToucheR_id)
        return PLUGIN_CONTINUE
    }
    return PLUGIN_CONTINUE
}

Last edited by Saint Sinner; 09-08-2017 at 14:39.
Saint Sinner is offline
 


Thread Tools
Display Modes

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 09:56.


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