Alıntı JDM Nickli Üyeden Alıntı Mesajı göster
Kendi yaptığını buraya atar mısın? Benim yazdığımda bir sıkıntı yok sen eksik kopyalamış olabilirsin.


PHP- Kodu:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>




#define PLUGIN "Jail Break: Basic Info"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"




#define USERTASK 921
#define UPDATEDELAY 1.0




new static reasons[][] = { 
    
"High | Scream"
}




new 
userreason[33]
new 
roundshudhandler




public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
    
register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/
    
    
register_logevent("round_end"2"1=Round_End")  
    
    
RegisterHam(Ham_Spawn"player""client_spawn"1)    
    
    
hudhandler CreateHudSyncObj()
}




public 
round_end()
{
    
rounds ++
}




public 
restart_roundsnum() 
{
    
rounds 
}




public 
client_disconnect(id)
{
    
userreason[id] = -1
    
    
if(task_exists(id USERTASK))
    {
        
remove_task(id USERTASK)
    }
}




public 
client_spawn(id)
{    
    if(
task_exists(id USERTASK))
    {
        
remove_task(id USERTASK)
    }    
    
    if(
get_user_team(id) == 1)
    {    
        
userreason[id] = random_num(0sizeof reasons 1)
        
        
set_task(UPDATEDELAY"client_jailinfo"id USERTASK__"b")
    }    
}




public 
client_jailinfo(TASKID

    static 
id 
    id 
TASKID USERTASK 
     
    set_hudmessage
(255000.00.2506.012.0
     
    
ShowSyncHudMsg(idhudhandler"%s || %d. gun"reasons[userreason[id]],rounds)