Raised This Month: $ Target: $400
 0% 

Plugin Register


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 12-01-2017 , 07:46   Plugin Register
Reply With Quote #1

Hello i download one plugin but he not have author how to set i try to set with define but not read in server , can you set in .sma

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 
#include <fakemeta> 
#include <colorchat>

#define TIME 30.0 

new Float:player_origin[33][3]; 

public 
plugin_init(){ 
    
RegisterHam(Ham_Spawn"player""e_Spawn"1); 

  
public 
e_Spawn(id

    
remove_task(id
    if(
is_user_alive(id)) 
    { 
        
set_task(0.8"get_spawn"id); 
    } 
    return 
HAM_IGNORED


public 
get_spawn(id

    
pev(idpev_originplayer_origin[id]); 
    
set_task(TIME"check_afk"id); 

  
public 
check_afk(id

    if(
is_user_alive(id)) 
    { 
        if(
same_origin(id)) 
        { 
            
user_kill(id); 
            new 
name[33]; 
            
get_user_name(idname32); 
            
ColorChat(0GREEN"^3[^4AFK Slay^3]^4: %s ^3eshte vrare per shkak te qendrimit ne ^4AFK."name); 
        } 
    } 

  
public 
same_origin(id

    new 
Float:origin[3]; 
    
pev(idpev_originorigin); 
    for(new 
03i++) 
        if(
origin[i] != player_origin[id][i]) 
            return 
0
    return 
1

lantimilan is offline
Send a message via MSN to lantimilan
 



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 03:16.


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