AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Set Model (https://forums.alliedmods.net/showthread.php?t=164530)

Razmo51 08-12-2011 16:38

[HELP] Set Model
 
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

hleV 08-12-2011 17:08

Re: [HELP] Set Model
 
Go to SourceMod section.

Razmo51 08-12-2011 18:00

Re: [HELP] Set Model
 
Sorry I'm confused


All times are GMT -4. The time now is 03:20.

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