User
Pass
2FA
 
 

[rezolvat]modificare plugin

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Fixed issues
Author Message986
pheonix

[Mentally Stable]



Status: Offline
(since 10-06-2007 03:48)
Joined: 30 Dec 2006
Posts: 8, Topics: 2
Location: Iran, Islamic Republic of

Reputation: 93.9
Votes: 4

 
Post Posted: 21-04-2007, 05:50:08 | Translate post to: ... (Click for more languages)

Salut , va rog cine poate sa-mi modifice si mie plugin-ul de mai jos
Ce face mai exact
Afiseaza in partea stinga-central a ecranului mai multe detalii despre jucator
Modificarea de care am nevoie este ca mesajul sa apara in partea dreapta-sus
Multumesc anticipat

Code:
 #include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
   register_plugin("Stats","0.2","Dah-Veeeed")
   set_task(2.0,"the_main",0,_,_,"b")
   register_event("Damage","damage_event","b","2!0","3=0","4!0")
   register_cvar("amx_info","1")
}

new damage[33] = 0

public client_putinserver(id) {
   damage[id] = 0
}

public client_disconnect(id) {
   damage[id] = 0
}

public damage_event(id)
{
   new attacker = get_user_attacker(id)
   new dmg = read_data(2)
   
   damage[attacker] += dmg
}


public the_main() {
   if(!get_cvar_num("amx_info")) {
      return PLUGIN_HANDLED
   }
   new players[32],num,i
   new message[200]
   get_players(players,num)
   for(i = 0; i <= num; i++)
   {
      new id = players[i]
      
      if(is_user_connected(id)) {
         new name[33]
         new ping
         new loss
         get_user_name(id,name,32)
         new frags = get_user_frags(id)
         new deaths = get_user_deaths(id)
         get_user_ping(id,ping,loss)
                        new nextmap[32]
                        get_cvar_string("amx_nextmap",nextmap,31)
                        new timeleft = get_timeleft()
         
         set_hudmessage (0,255,255, 0.01, 0.29, 0, 6.0, 2.0, 0.1, 0.2, 4 )
         format(message,199," %s ^n Fraguri: %i ^n Morti: %i ^n Damage total: %i ^n Ping: %i ^nTimp ramas: %d:%02d^nUrmatoarea harta: %s",name,frags,deaths,damage,ping,timeleft / 60, timeleft % 60,nextmap)
         show_hudmessage(id,message)
      }
   }
   return PLUGIN_CONTINUE
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by TwisTer, 15 March 2015 13:10



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Fixed issues  


The time now is 27-04-2024, 12:41:37
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x