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
|