Hy all Eps TuTja alapján csináltam egy automatikusan nyitodó/zárodó kaput,csak h nem müködik mi a baj :
#include <a_samp>
#if defined FILTERSCRIPT
forward OpenGate(playerid);
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
CreateObject(980, 2036.322754, 1010.334351, 12.593704, 0.0000, 0.0000, 270.0000);
SetTimer(\"OpenGate\",700, 1);
return 1;
}
public OpenGate(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(3, playerid, 2034.5461,1009.8738,10.8203))
{
MoveObject(Gate, 2036.368164, 1010.330139, 6.776847, 3);
}
else
{
MoveObject(Gate, 2036.322754, 1010.334351, 12.593704, 3);
}
}
}
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) return IsPlayerInRangeOfPoint(playerid,radi,x,y,z);
#endif
Kérlek segítsettek fontos lenne.
ELore is kösz.