Thread: [API Scripting Help] get zombie class name (5.0)
View Single Post
Author Message
CHyCMyMpNk
Senior Member
Join Date: Jun 2008
Location: PTZ
Old 11-18-2011 , 14:30   get zombie class name (5.0)
Reply With Quote #1

#include <zp50_class_zombie>
PHP Code:
/**
 * Returns a zombie class' name.
 *
 * @param classid    A valid zombie class ID.
 * @param name        The buffer to store the string in.
 * @param len        Character size of the output buffer.
 * @return            True on success, false otherwise.
 */
native zp_class_zombie_get_name(classidname[], len
I try this:
PHP Code:
    // Get his name
    
new zc_name[32]
    
get_user_name(idname31)

    
zp_class_zombie_get_name(idzc_name31)

    if (
is_user_alive(id))// bla bla bla
    
{
            
ColorChat(0RED"[%s] %s^x01: %s"zc_namename);
    } 
Why then this option gives not the correct name of zombies. Can I something wrong?

Last edited by CHyCMyMpNk; 11-18-2011 at 14:32.
CHyCMyMpNk is offline
Send a message via ICQ to CHyCMyMpNk