@BaX
PHP Code:
main()
{
thread OnPlayerConnect();
}
PHP Code:
OnPlayerConnect()
{
for(;;)
{
level waittill("connecting", user);
user thread trap1();
}
}
PHP Code:
trap1()
{
kosa = getent("kosa_1", "targetname");
kosa_kill = getent("kosa_2", "targetname");
kosa_kill enablelinkto(); //i think it's useless
kosa_kill linkto(kosa);
while(1)
{
kosa movex(82,5,2);
wait 0.5;
kosa movex(-82,5,2);
wait 0.5;
}
}