Raised This Month: $ Target: $400
 0% 

[HELP] Set Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 08-12-2011 , 16:38   [HELP] Set Model
Reply With Quote #1

Hello,

I'm working about a sript to create command who set a skin.

This command is public.
I have already started the script but I can not continue.

Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public Plugin:myinfo =
{
    name = "Skin",
    author = "Ghost Rider"
}

public OnPluginStart()
{
    RegConsoleCmd("sm_pb", Command_skin, "Commande Pedo Bear")
    
}

public Action:Command_skin(iClient, iArgs)
{
    //SetEntityModel(iClient,"models\player\kuristaja2\pbear\pbear.mdl");
    // First method don't work ><

    SDKCall(SetModel,iClient,"models/player/kuristaja2/pbear/pbear.mdl");
    // don't work

    PrintToChat(iClient, "test1");
}
Tanks


PS:Sorry for my ban English, I'm belgian

EDIT:

Error compiling:
Quote:
skin.sp(20) : error 017: undefined symbol "SetModel"
skin.sp(21) : warning 217: loose indentation

Last edited by Razmo51; 11-03-2013 at 12:09.
Razmo51 is offline
 



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 03:20.


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