Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sorun ne smadaki ?
#1
PHP Code:
/* 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[][] = { 
    
"[RevolutioN] Testereyle oraya buraya saldirdi.",
    
"[RevolutioN] Cinayet isledi",
    
"[RevolutioN] Polise karsi geldi",
    
"[RevolutioN] RevolutioN Gaminge kufur etti.",
    
"[RevolutioN] Birine Bicak cekti",
    
"[RevolutioN] Saldirida bulundu",
    
"[RevolutioN] Korsan CD Satti",
    
"[RevolutioN] Adam yaraLadi"
           "[RevolutioN] Polise Moruk dedi amk."
           "[RevolutioN] Sokagin ortasinda sekilsiniz ya hiaminaa diye bagirdi.."
           "[RevolutioN] Sucsuz yere icerde yatiyor mal"
           "[RevolutioN] At sikti."
}

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
(025500.80.106.012.0)
    
    
ShowSyncHudMsg(idhudhandler"Gun %d | Hapis Sebebi %s."roundsreasons[userreason[id]])    


compile ederken ;
/tmp/text4CQ3fk.sma(23) : error 001: expected token: "}", but found "-string-"

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text4CQ3fk.amx (compile failed).

sorunu geliyor . sorunsuz sma istiyorum rica edicem
Reply
#2
PHP Code:
/* 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[][] = { 
    
"[RevolutioN] Testereyle oraya buraya saldirdi.",
    
"[RevolutioN] Cinayet isledi",
    
"[RevolutioN] Polise karsi geldi",
    
"[RevolutioN] RevolutioN Gaminge kufur etti.",
    
"[RevolutioN] Birine Bicak cekti",
    
"[RevolutioN] Saldirida bulundu",
    
"[RevolutioN] Korsan CD Satti",
    
"[RevolutioN] Adam yaraLadi",
    
"[RevolutioN] Polise Moruk dedi amk.",
    
"[RevolutioN] Sokagin ortasinda sekilsiniz ya hiaminaa diye bagirdi..",
    
"[RevolutioN] Sucsuz yere icerde yatiyor mal",
    
"[RevolutioN] At sikti."
}

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
(025500.80.106.012.0)
    
    
ShowSyncHudMsg(idhudhandler"Gun %d | Hapis Sebebi %s."roundsreasons[userreason[id]])    

Reply
#3
eyv
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Acil Sorun istek hasanx9 6 3,989 03-08-16, 20:44
Last Post: murat1366
  [Plugin-Sorun] mikail5529 4 2,678 11-09-14, 00:01
Last Post: tifargemirhan
  Bılbaz shop sorun mikail5529 3 3,790 08-09-14, 15:53
Last Post: kaptan647
  [sorun] kapılarda bug Osmanolu12 3 2,385 02-07-14, 03:18
Last Post: Osmanolu12
  Menüdeki Meslek Plugini SORUN YARDIM! blackzone 9 3,644 30-11-13, 19:39
Last Post: akcaliberkk
  Meslek Plugini Sorun EnbuyukBjk 12 5,876 03-11-13, 01:50
Last Post: JDM
  Jail Break Sorun hasanx9 6 2,825 18-07-13, 19:23
Last Post: Nobb
  Sorun hasanx9 7 2,346 18-07-13, 18:45
Last Post: sefatokgoz
  Sorun İstek leaffan1994 8 5,535 20-03-13, 01:54
Last Post: DeaTReX
  Akcali Bakarmısın Pluginde Sorun Var Nefesim 13 6,902 08-02-13, 17:35
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: 1 Guest(s)