Monthly Target: $400 Donations: $325
 81% 

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Y060N
Forum: Scripting Help 07-12-2012, 02:06
Replies: 4
Views: 772
Posted By Y060N
Re: How can I get damage bits out of Ham_TakeDamage?

The last parameter is the damage type, and I am guessing that is what you are looking for.
Forum: Subplugin Submissions 07-12-2012, 01:58
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

public client_PreThink(id) {
if(~_IsPlayerAlive(id))
return PLUGIN_HANDLED;

if( _IsPlayerInMask( id ) ) {

if(get_pcvar_num( _pcvar_after_icon_on ) == 1) {...
Forum: Subplugin Submissions 07-12-2012, 01:54
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

I believe I was the one that had you remove player_prethink. Correct me if I'm wrong? Micapat's method was creating a 5 second thinking entity.
Forum: Subplugin Submissions 07-12-2012, 01:48
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

I will chill when you give micapat and I the correct credit. It wasn't just removing a loop and closing the thread, it was optimizing your code by at least 1000x since now it isn't called for every...
Forum: Subplugin Submissions 07-12-2012, 01:25
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

Your link to my profile doesn't work in your opening post. And I think you should give credit to me and micapat with reason (making my plugin more efficient tenfold and removing pre-think...
Forum: Subplugin Submissions 07-12-2012, 01:08
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

I just edited my post with an example. No think necessary and yes I have tested it. I use a function similar that just calls this:


gasmask_icon( id, status, r, g, b )
{

...
Forum: Subplugin Submissions 07-12-2012, 01:03
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

I am saying don't use a think entity for this. Just send 1 message to the client when he buys the mask, 1 message when the mask is removed. Way better than registering a think that is happening...
Forum: Subplugin Submissions 07-12-2012, 00:58
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

So just write the icon message when he buys the gas mask, then when the infection nade is stopped, take away the icon?

message_begin( MSG_ONE_UNRELIABLE, g_icon, { 0, 0, 0 }, id );
...
Forum: Scripting Help 07-12-2012, 00:28
Replies: 9
Views: 1,242
Posted By Y060N
Re: Problems with 'TE_PLAYERATTACHMENT'

Are you sure you are using the correct types of sprite?
Forum: Subplugin Submissions 07-11-2012, 23:29
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

Lol you think I rip plugins because I use a create entity code from another plugin? I have created plenty of plugins on my own with no help from other people. At least I know how to create a plugin...
Forum: Subplugin Submissions 07-11-2012, 22:52
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

get_user_msgid("StatusIcon")

Stop being lazy and use the search button. Client PreThink is not needed 99% of the time. Use the search button for once in your life.
Forum: Subplugin Submissions 07-11-2012, 21:55
Replies: 97
Views: 18,647
Posted By Y060N
Re: [ZP] Extra Item: Gas Mask

Rofl I just told him that in my other thread that he keeps spamming. It would be way better hooking grenade think, or even re-writing the original infection grenade file that way no extra thinking...
Forum: Subplugin Submissions 07-11-2012, 21:35
Replies: 28
Views: 11,351
Posted By Y060N
Re: [ZP 5.0] New Survivor (has skill) + Minigun!

Your gas mask that you released yourself is one example. Using client pre-think instead of grenade think. Even better way is to just release a new infection grenade file and do not edit anything...
Forum: Subplugin Submissions 07-11-2012, 21:18
Replies: 28
Views: 11,351
Posted By Y060N
Re: [ZP 5.0] New Survivor (has skill) + Minigun!

Sure I'll add him but you act like I am ripping his code and taking credits knowingly. Creating an entity and setting some characteristics is so easy and you should know that, I just used code that...
Forum: Subplugin Submissions 07-11-2012, 18:53
Replies: 28
Views: 11,351
Posted By Y060N
Re: [ZP 5.0] New Survivor (has skill) + Minigun!

I got the code for the field from a friend of mine, didn't know "lucas" created it. And this is a code from when I was first starting to make things for my server, which I don't use anymore so I...
Forum: API Scripting Help 07-11-2012, 18:42
Replies: 8
Views: 1,563
Posted By Y060N
Re: Respawn on connect

No problem :) Hope the version I posted works, I didn't test it :P

And you don't really need to check for is_user_connected because it removes the task when they are disconnected, but I just like...
Forum: Zombie Plague Mod 07-11-2012, 17:04
Replies: 2
Views: 546
Posted By Y060N
Re: HELP ZOMBIES HUD SPRITE

Read the tutorial and follow it?
Forum: Bug Reports 07-11-2012, 14:01
Replies: 4
Views: 1,766
Posted By Y060N
Re: Errors in zombie_plague40.amxx

Check for this:

if (!is_user_alive(id))
return

wherever the errors are.


Better choice is to upgrade to zp 5.0.8
Forum: API Scripting Help 07-11-2012, 13:49
Replies: 8
Views: 1,563
Posted By Y060N
Re: Respawn on connect

No loop needed, there is a forward for it. And I don't really know why it's using an infinite task but I think this is better:

#include <amxmodx>
#include <zombieplague>
#include <zp50_core>
...
Forum: Subplugin Submissions 07-10-2012, 17:49
Replies: 28
Views: 11,351
Posted By Y060N
Forum: Scripting Help 07-10-2012, 16:56
Replies: 5
Views: 451
Posted By Y060N
Re: [SQL] Connection problem

It's because of this line:

if(FailState == TQUERY_CONNECT_FAILED)
return set_fail_state("Could not connect to SQL database.")

It a problem with the login information or permissions of...
Forum: Scripting Help 07-10-2012, 15:09
Replies: 1
Views: 437
Posted By Y060N
Data reduction with WiLS models API

On my server, I have noticed that it has gotten laggier as it grew with players. It's getting to the point where it can sometimes get unplayable. I am getting spikes of choke and sometimes raised...
Forum: Subplugin Submissions 07-09-2012, 20:39
Replies: 18
Views: 2,782
Posted By Y060N
Re: [ZP 4.3/5.0] Pipe Bomb

My server is almost full all the time, a 10 second delay would drag 90% of the zombies into it lol, would make gameplay unbalanced.
Forum: Zombie Plague Mod 07-09-2012, 17:54
Replies: 8,377
Views: 3,788,215
Posted By Y060N
Re: [Zp] Another Zombie's models Collection

Thanks man, you are the model king :P
Forum: Scripting Help 07-09-2012, 15:12
Replies: 3
Views: 334
Posted By Y060N
Re: Out of bounds error in clientPrethink. Would appreciate some help.

What can I use instead of PreThink to heal players around that player at a constant rate?

Also, why can't I use bits to check if they are alive?
Showing results 1 to 25 of 500

 
Forum Jump

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


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