[HELP] Electric Fence
#10

Quote:
Originally Posted by Janoz12
View Post
Can you show me your filterscript to see how you have it?

Code:
#define FILTERSCRIPT

#include <a_samp>
#include <sscanf>


new Electric_Fence;
#define FenceModelID 987 //Change to preference

public OnGameModeInit()
{
SetTimer("Check_Position", 1000, true); //Change to preference

Electric_Fence = CreateObject(FenceModelID, 1271.32739, -2047.58093, 58.14730, 0.0, 0.0, 0.0);

return 1;
}

forward Check_Position();
public   Check_Position()
{

for (new i; i < GetPlayerPoolSize(); i++)
{
new Float: x,Float: y,Float: z;
GetObjectPos(Electric_Fence,x,y,z);

if (!IsPlayerInRangeOfPoint(i, 1.0, x, y, z)) // Change to preference
{
new Float:health;
GetPlayerHealth(i, health);
SetPlayerHealth(i, health-15); // Change to preference
}


}
return 1;
}
Reply


Messages In This Thread
[HELP] Electric Fence - by RogerX - 04.04.2020, 21:21
Re: [HELP] Electric Fence - by Janoz12 - 04.04.2020, 21:51
Re: [HELP] Electric Fence - by v1k1nG - 05.04.2020, 00:56
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 01:07
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 06:08
Re: [HELP] Electric Fence - by David (Sabljak) - 05.04.2020, 08:38
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:47
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:52
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 14:15
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)