Raised This Month: $51 Target: $400
 12% 

A question SH


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alconnegro
Member
Join Date: Jun 2010
Old 09-27-2010 , 11:36   A question SH
Reply With Quote #1

sorry for my bad English use a translator, that code as well take this forum and I walk all right but as I get the xp when haiga at least 4 players?

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <superheromod>
new pcvarXP
new gPlayers[SH_MAXSLOTS+1]
public 
plugin_init()
{
 
register_plugin("Random XP""1.0""Jelle")
 
 
pcvarXP register_cvar("randomxp_xptoadd""200")
}
public 
client_connect(id)
{
 
gPlayers[id]++
}
public 
client_disconnect(id)
{
 
gPlayers[id]--
}
public 
client_PreThink(id)
{
 new 
Float:gGameTime[SH_MAXSLOTS+1]
 
gGameTime[id] = halflife_time()
 
 switch(
gGameTime[id])
 {
  case 
300:
  {
   
sh_set_user_xp(random_num(1,gPlayers[id]), get_pcvar_num(pcvarXP), true)
  }
  
  case 
600:
  {
   
sh_set_user_xp(random_num(1,gPlayers[id]), get_pcvar_num(pcvarXP), true)
  }
 }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\ rtf1\ ansi\ deff0{\ fonttbl{\ f0\ fnil Tahoma;}}n\ viewkind4\ uc1\ pard\ lang1030\ f0\ fs16 n\ par }
*/ 
__________________
[IMG]http://img718.**************/img718/7375/wtfzv.jpg[/IMG]
alconnegro is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-27-2010 , 12:26   Re: A question SH
Reply With Quote #2

Is that the RandomXP plugin by Jelle and Freeman? If so, post in that thread for support about it.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 09-27-2010 , 12:31   Re: A question SH
Reply With Quote #3

don't worry its not mine.
Fr33m@n is offline
alconnegro
Member
Join Date: Jun 2010
Old 09-27-2010 , 12:49   Re: A question SH
Reply With Quote #4

place it in this topic because I did not find what I want to add has to do with the item, good, but someone could help me?
__________________
[IMG]http://img718.**************/img718/7375/wtfzv.jpg[/IMG]
alconnegro is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 09-27-2010 , 14:19   Re: A question SH
Reply With Quote #5

W T F is the problem?...

Are you saying the plugin is not working when there are more/less then 4 players in your server?
__________________
The Art of War is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-27-2010 , 14:55   Re: A question SH
Reply With Quote #6

I fixed it using a set_task instead of that method which is much better. Look in the same topic to find it.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Reply



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 10:22.


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