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

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Y060N
Forum: Scripting Help 07-12-2012, 02:06
Replies: 4
Views: 2,020
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: Zombie Plague Mod 07-12-2012, 01:58
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 01:54
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 01:48
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 01:25
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 01:08
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 01:03
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-12-2012, 00:58
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: 2,790
Posted By Y060N
Re: Problems with 'TE_PLAYERATTACHMENT'

Are you sure you are using the correct types of sprite?
Forum: Zombie Plague Mod 07-11-2012, 23:29
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-11-2012, 22:52
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-11-2012, 21:55
Replies: 98
Subplugin Submission [ZP] Extra Item: Gas Mask
Views: 50,607
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: Zombie Plague Mod 07-11-2012, 21:35
Replies: 28
Views: 25,126
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: Zombie Plague Mod 07-11-2012, 21:18
Replies: 28
Views: 25,126
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: Zombie Plague Mod 07-11-2012, 18:53
Replies: 28
Views: 25,126
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: Zombie Plague Mod 07-11-2012, 18:42
Replies: 8
API Scripting Help Respawn on connect
Views: 3,394
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: 1,113
Posted By Y060N
Re: HELP ZOMBIES HUD SPRITE

Read the tutorial and follow it?
Forum: Zombie Plague Mod 07-11-2012, 14:01
Replies: 4
Views: 3,197
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: Zombie Plague Mod 07-11-2012, 13:49
Replies: 8
API Scripting Help Respawn on connect
Views: 3,394
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: Zombie Plague Mod 07-10-2012, 17:49
Replies: 28
Views: 25,126
Posted By Y060N
Forum: Scripting Help 07-10-2012, 16:56
Replies: 5
Views: 1,258
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: 1,249
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: Zombie Plague Mod 07-09-2012, 20:39
Replies: 18
Subplugin Submission [ZP 4.3/5.0] Pipe Bomb
Views: 9,428
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,633
Views: 6,729,706
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: 1,124
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 16:36.


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