AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] This for plugin help me (https://forums.alliedmods.net/showthread.php?t=193624)

Sepsis 08-21-2012 06:41

[HELP] This for plugin help me
 
I use include "playermodel"

PHP Code:

#include <playermodel> 

I choose "Bordo Bereli"

PHP Code:

menu_additem(op_menu"\wBordo Bereli (M4a1+Ak47+Deagle)-(255 Hp + 500 Armor + Nvg + Gravity)""9"ADMIN_IMMUNITY


Bordo Bereli feature:

PHP Code:

case 9:
        {
            if( 
is_user_aliveid ) )
            {
                
ColorChat(0NORMAL"^3%s^1: Bordo Bereli Turunu Sectiniz",tag)
                
fm_set_user_model(id"bordobere")
                
client_cmd(id,"spk bordobere/bordobere")
                
set_user_health(id255)
                
set_user_armor(id500)
                
give_item(id"weapon_m4a1")
                
give_item(id"weapon_ak47")
                
give_item(id"weapon_deagle")
                
cs_set_user_bpammo(idCSW_M4A190)
                
cs_set_user_bpammo(idCSW_AK4790)
                
cs_set_user_bpammo(idCSW_DEAGLE90)
                
cs_set_user_nvg(id1)
                
set_user_gravity(id0.5)
            }
        } 

PHP Code:

public oyuncu_tekrar_dogunca(id)
{
    if (
is_user_alive(id))
    {
        if(
cs_get_user_team(id))
        {
            
strip_user_weapons(id)
            
fm_reset_user_model(id)
            
cs_set_user_nvg(id0)
            
set_pdata_int(idOFFSET_PRIMARYWEAPON)
            
give_item(id"weapon_knife" )
        }
    }


Plugin compile but, plugin not work :S

fm_set_user_model(id, "bordobere") and fm_reset_user_model(id)

EDIT:

Code:

( 28) Load fails: Module/Library "playermodel" required for plugin.  Check modules.ini.
28 plugins, 27 running


Napoleon_be 08-21-2012 08:54

Re: [HELP] This for plugin help me
 
Weird that you're getting that error while the INCLUDE isn't a MODULE.

Backstabnoob 08-21-2012 08:57

Re: [HELP] This for plugin help me
 
It uses fake natives, that's why.

You need to get Connor's player model API plugin and load it before this one.

Sepsis 08-21-2012 08:59

Re: [HELP] This for plugin help me
 
What can I do? Do you have any idea?

Sepsis 08-21-2012 09:05

Re: [HELP] This for plugin help me
 
1 Attachment(s)
Did I use it

Sepsis 08-21-2012 11:00

Re: [HELP] This for plugin help me
 
Quote:

Originally Posted by Sepsis (Post 1777859)
EDIT:

Yeah, thnx plugin work :)

EDIT2:

Plugin work but, the player doesn't look like "bordobere". :(


Backstabnoob 08-21-2012 11:05

Re: [HELP] This for plugin help me
 
Nobody is going to help you if you do a triple post in 30 minutes.

Sepsis 08-21-2012 11:06

Re: [HELP] This for plugin help me
 
Quote:

Originally Posted by Backstabnoob (Post 1777938)
Nobody is going to help you if you do a triple post in 30 minutes.

Ok, sorry

Sepsis 08-22-2012 07:50

Re: [HELP] This for plugin help me
 
Ok, I use to
PHP Code:

#include <cstrike> 

Problem is solved.


All times are GMT -4. The time now is 05:53.

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