AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Sub-Plugin: Rewards 1.4 | Updated [FIXED KNIFE BUG] (https://forums.alliedmods.net/showthread.php?t=124827)

georgik57 04-21-2010 12:55

[ZP] Sub-Plugin: Rewards 1.4 | Updated [FIXED KNIFE BUG]
 
-DELETED-

abdul-rehman 04-21-2010 13:15

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Cool plugin mann i might help you with this one as well ...!! :D

georgik57 04-21-2010 13:17

Re: [ZP] Sub-Plugin: Rewards 1.0
 
thanks:crab:
i didn't even test it but i'm sure it works perfect
can u test it for me and tell me if it really does?
PS: also make some screenshots?:crab:

abdul-rehman 04-21-2010 13:17

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Instead of using this stock for color printing..
PHP Code:

// Colored chat print. Thanks to MeRcyLeZZ
zp_colored_print(target, const message[], any:...)
{
 static 
buffer[512], iargscount
 argscount 
numargs()
 
 
// Send to everyone
 
if (!target)
 {
  static 
player
  
for (player 1player <= g_maxplayersplayer++)
  {
   
// Not connected
   
if (!is_user_connected(player))
    continue;
   
   
// Remember changed arguments
   
static changed[5], changedcount // [5] = max LANG_PLAYER occurencies
   
changedcount 0
   
   
// Replace LANG_PLAYER with player id
   
for (2argscounti++)
   {
    if (
getarg(i) == LANG_PLAYER)
    {
     
setarg(i0player)
     
changed[changedcount] = i
     changedcount
++
    }
   }
   
   
// Format message for player
   
vformat(buffercharsmax(buffer), message3)
   
   
// Send it
   
message_begin(MSG_ONE_UNRELIABLEg_msgSayText_player)
   
write_byte(player)
   
write_string(buffer)
   
message_end()
   
   
// Replace back player id's with LANG_PLAYER
   
for (0changedcounti++)
    
setarg(changed[i], 0LANG_PLAYER)
  }
 }
 
// Send to specific target
 
else
 {
  
// Format message for player
  
vformat(buffercharsmax(buffer), message3)
  
  
// Send it
  
message_begin(MSG_ONEg_msgSayText_target)
  
write_byte(target)
  
write_string(buffer)
  
message_end()
 }


U can actually use this stock:
PHP Code:

// Prints chat in colours
stock zp_colored_print(const id, const input[], any:...)
{
 new 
iCount 1iPlayers[32]
 
 static 
szMsg[191]
 
vformat(szMsgcharsmax(szMsg), input3)
 
 
replace_all(szMsg190"|g|""^4"// green txt
 
replace_all(szMsg190"|y|""^1"// orange txt
 
replace_all(szMsg190"|ctr|""^3"// team txt
 
replace_all(szMsg190"|w|""^0"// team txt
 
 
if(idiPlayers[0] = id
 
else get_players(iPlayersiCount"ch")
  
 for (new 
0iCounti++)
 {
  if (
is_user_connected(iPlayers[i]))
  {
   
message_begin(MSG_ONE_UNRELIABLEg_msgSayText_iPlayers[i])
   
write_byte(iPlayers[i])
   
write_string(szMsg)
   
message_end()
  }
 }



georgik57 04-21-2010 13:20

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1156601)
Instead of using this stock for color printing..

U can actually use this stock:

thanks but i prefer using MeRcyLeZZ's stock...

Quote:

Originally Posted by georgik57 (Post 1156600)
i didn't even test it but i'm sure it works perfect
can u test it for me and tell me if it really does?
PS: also make some screenshots?:crab:


abdul-rehman 04-21-2010 13:29

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Man my pc is having some kind of wierd problems when i start cs it gives me that your virtual memory is low..so my cs is not working..:(

georgik57 04-21-2010 13:32

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1156615)
Man my pc is having some kind of wierd problems when i start cs it gives me that your virtual memory is low..so my cs is not working..:(

problems with RAM memory or you don't have enough of them
try uninstalling all the unusefull software you have in your system

abdul-rehman 04-21-2010 13:52

Re: [ZP] Sub-Plugin: Rewards 1.0
 
Quote:

Originally Posted by georgik57 (Post 1156619)
problems with RAM memory or you don't have enough of them
try uninstalling all the unusefull software you have in your system

THnx now i finally know what is this fuckin problem recently one of my pcs ram stop working so i removed it thats why this is ocurring

georgik57 04-21-2010 18:11

Re: [ZP] Sub-Plugin: Rewards 1.1
 
:crab:Updated to v1.1:crab:
:crab:Check the first post for more info:crab:

Steak243 04-21-2010 19:05

Re: [ZP] Sub-Plugin: Rewards 1.1
 
When i compile i get errors of zp_get_survivor_count and zp_get_nemesis_count


All times are GMT -4. The time now is 15:22.

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