Raised This Month: $ Target: $400
 0% 

native + player model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-12-2013 , 07:13   Re: native + player model
Reply With Quote #1

@LordOfNothing
Stop posting useless crap.

@CryWolf
Here you go:
PHP Code:
public fw_PlayerSpawn id )
{
    if ( !
is_user_alive id ) )
        return;
    
set_task 4.0"set_model"id )

---------->
PHP Code:
public fw_PlayerSpawn id )
{
    if ( !
is_user_alive id ) )
        return;

    if ( 
get_santa id ) )
        return 
1;

    
set_task 4.0"set_model"id )

PHP Code:
public native_get_santa id ) {
    return 
mosul id ] == true 0

------>

PHP Code:
public native_get_santa (plugin,params) {
    static const 
maxplayers get_maxplayers();

    static 
client;

    
client get_param(1);

    if (
client || client maxplayers)
    {
        
log_error(AMX_ERR_NATIVE,"Invaild player %d",client);
        return 
false
    
}

    return 
mosul[client];

PHP Code:
// In santa plugin, in plugin natives forward:
register_native("get_santa","native_get_santa",0); 
PHP Code:
// In inc
native bool:get_santa(id); 
__________________

Last edited by simanovich; 11-12-2013 at 07:13.
simanovich 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 23:18.


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