11.04.2019, 16:48
How can I use the "CreateDynamicActor" symbol for my server? I tried many streamer plugin version but it didn't work. Example: SetDynamicActorPos didn't work. What should I do?
new MyActor;
public OnGameModeInit()
{
MyActor = CreateDynamicActor(modelid, Float:x, Float:y, Float:z, Float:r);
//(modelid = skin id, float x, float y, float z, r = angle)
return 1;
}
SetDynamicActorPos(MyActor, Float:x, Float:y, Float:z);
undefined symbol "CreateDynamicActor"
SetDynamicActorPos doesn't work at OnPlayerUpdate. Actor disappears. |
new MyActor[2];
public OnGameModeInit()
{
// Actor 1 = MyActor[0]
MyActor[0] = CreateDynamicActor(23, 0.0, 0.0, 0.0);
SetDynamicActorPos(MyActor[0], 0.0, 0.0, 0.0);
// Actor 2 = MyActor[1]
MyActor[1] = CreateDynamicActor(23, 0.0, 0.0, 0.0);
SetDynamicActorPos(MyActor[1], 0.0, 0.0, 0.0);
return 1;
}
SetDynamicActorPos should be put inside OnGamemodeInit()
Example pawn Code:
|
SetDynamicActorPos should be put inside OnGamemodeInit()
Example pawn Code:
|