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

[HELP] First zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
myusername
Senior Member
Join Date: Aug 2012
Old 01-18-2014 , 13:00   [HELP] First zombie
Reply With Quote #1

Hello, below code gives me error.

PHP Code:
#include <amxmodx>
#include <cs_player_models_api>
#include <zp50_core>

public plugin_precache() {
    
precache_model"models/player/santa/santa.mdl" );
}

public 
zp_fw_gamemodes_start(id) {
    if (
zp_core_is_first_zombie(id)) {
        
cs_set_player_modelid"santa" )
    }


this error

PHP Code:
L 01/19/2014 01:54:41: [ZPInvalid Player (0)
L 01/19/2014 01:54:41: [AMXXDisplaying debug trace (plugin "Test.amxx")
L 01/19/2014 01:54:41: [AMXXRun time error 10native error (native "zp_core_is_first_zombie")
L 01/19/2014 01:54:41: [AMXX]    [0FirstZombie.sma::zp_fw_gamemodes_start (line 10
__________________
Rest in piece.

Last edited by myusername; 01-18-2014 at 13:00.
myusername is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 01-18-2014 , 14:06   Re: [HELP] First zombie
Reply With Quote #2

Try..

PHP Code:
#include <amxmodx>
#include <cs_player_models_api>
#include <zp50_core>

public plugin_precache() {
    
precache_model"models/player/santa/santa.mdl" );
}

public 
zp_fw_gamemodes_start(id) {
    if (
is_user_alive(id) && zp_core_is_first_zombie(id)) {
        
cs_set_player_modelid"santa" )
    }

wicho is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-19-2014 , 01:47   Re: [HELP] First zombie
Reply With Quote #3

Wrong way to check first zombie ...
. Use zp_fw_core_infect_post(id) for the efficiency....
__________________
You will find everything u need :-

Last edited by Catastrophe; 01-19-2014 at 01:48.
Catastrophe 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 05:27.


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