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

[ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-22-2015 , 20:22   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #61

No need to add check in client_connect. Just check if is_user_connected in client_putinserver, then put your other codes.
zmd94 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-23-2015 , 17:43   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #62

PHP Code:
public client_connect(id)
{
    
is_user_connected(id) && zp_grenade_frost_set(idfalse)

I just tried to add this check, but it didn't work.

PHP Code:
L 01/23/2015 08:26:16: [ZPInvalid Player (3)
L 01/23/2015 08:26:16: [AMXXDisplaying debug trace (plugin "zp50_class_dragon.amxx")
L 01/23/2015 08:26:16: [AMXXRun time error 10native error (native "zp_grenade_frost_set")
L 01/23/2015 08:26:16: [AMXX]    [0zp50_class_dragon.sma::unfrozen_user (line 235
Function at line 235

PHP Code:
public unfrozen_usertarget )
{
    
zp_grenade_frost_settargetfalse )
    
Bloqueado[target] = false

Quote:
Originally Posted by zmd94 View Post
No need to add check in client_connect. Just check if is_user_connected in client_putinserver, then put your other codes.
Don't think we are even using client_putinserver, in this plugin, unless you mean replace client_connect with client_putinserver.
Spirit_12 is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-23-2015 , 17:49   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #63

Quote:
Originally Posted by Spirit_12 View Post
PHP Code:
public client_connect(id)
{
    
is_user_connected(id) && zp_grenade_frost_set(idfalse)

I just tried to add this check, but it didn't work.

PHP Code:
L 01/23/2015 08:26:16: [ZPInvalid Player (3)
L 01/23/2015 08:26:16: [AMXXDisplaying debug trace (plugin "zp50_class_dragon.amxx")
L 01/23/2015 08:26:16: [AMXXRun time error 10native error (native "zp_grenade_frost_set")
L 01/23/2015 08:26:16: [AMXX]    [0zp50_class_dragon.sma::unfrozen_user (line 235
Function at line 235

PHP Code:
public unfrozen_usertarget )
{
    
zp_grenade_frost_settargetfalse )
    
Bloqueado[target] = false

Don't think we are even using client_putinserver, in this plugin, unless you mean replace client_connect with client_putinserver.

Change that part to this>>>

PHP Code:
public client_putinserver(id)
{
        if(
is_user_connected(id))
        
zp_grenade_frost_set(idfalse)

I think there is no need to add check for freezing
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 01-23-2015 at 17:53.
New.ZM.Life is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-23-2015 , 18:22   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #64

What I mean is we need to replace the client_connect with client_putinserver. ;)
zmd94 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-23-2015 , 19:03   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #65

Still getting the error.

PHP Code:
L 01/23/2015 18:28:24: [ZPInvalid Player (3)
L 01/23/2015 18:28:24: [AMXXDisplaying debug trace (plugin "zp50_class_dragon.amxx")
L 01/23/2015 18:28:24: [AMXXRun time error 10native error (native "zp_grenade_frost_set")
L 01/23/2015 18:28:24: [AMXX]    [0zp50_class_dragon.sma::client_putinserver (line 321
Spirit_12 is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-23-2015 , 19:26   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #66

Quote:
Originally Posted by zmd94 View Post
What I mean is we need to replace the client_connect with client_putinserver. ;)
Zmd94,do You get same error with him?
I can not find any error!!! (debug is enable)
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-24-2015 , 10:09   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #67

Just attach your zp50_class_dragon.sma file.

Last edited by zmd94; 01-24-2015 at 10:09.
zmd94 is offline
Old 01-24-2015, 16:10
SAS8850
This message has been deleted by SAS8850.
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-24-2015 , 22:02   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #68

There you go.
Attached Files
File Type: sma Get Plugin or Get Source (zp50_class_dragon.sma - 493 views - 15.6 KB)
Spirit_12 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-25-2015 , 02:11   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #69

PHP Code:
public client_putinserver(id)
{
        if(
is_user_connected(id))
        
zp_grenade_frost_set(idfalse)

-->
PHP Code:
public client_putinserver(id)
{
    if(
is_user_connected(id))
    {
        
zp_grenade_frost_set(idfalse)
    }

zmd94 is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-25-2015 , 08:12   Re: [ZP50] Custom Version 1.2 (Dragon,Plasma,Knifer,Sniper,Assassin)
Reply With Quote #70

Sry guys this days im stuck in university exams and can not check problems of this plugins
I hope I can update this thread again after my university exams Btw I dont have any idea to create New Gamemodes Like Dragon,Knifer and Plasma
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
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 01:34.


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