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

API Scripting Help First Zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
myusername
Senior Member
Join Date: Aug 2012
Old 01-18-2014 , 12:59   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:01.
myusername is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 01-18-2014 , 14:20   Re: First Zombie
Reply With Quote #2

Why u make two post for the same thing https://forums.alliedmods.net/showthread.php?t=233664 check the first i answered..
wicho 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 19:46.


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