Hey Leute, hab mir grad ein Tor erstellt,(schon öfters gemacht)
Leider öffnet es sich nicht.
Code:
//tore
forward fbitor1();
//tore
//tore
new fbitor;
new fbitor3;
//tore
fbitor = b_CreateObject(976, 1285.281982, -1650.776611, 12.708785, 0.000000, 0.000000, -89.999981276); //
fbitor3 = b_CreateObject(976, 1285.296387, -1641.934204, 12.690951, 0.000000, 0.000000, -89.999981276); //
if (strcmp(cmdtext, "/fopen", true)==0)
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "Tor schliest sich in 9 Sekunden Automatisch wieder!");
MoveObject(fbitor, 1285.184204, -1650.788208, 9.383836, 3.5);
MoveObject(fbitor3, 1285.288696, -1641.940430, 9.433835, 3.5);
SetTimer("fbitor1", 9000, 0);
}
return 1;
}
//tore
public fbitor1()
{
MoveObject (fbitor,1285.281982, -1650.776611, 12.708785, 2.5);
MoveObject (fbitor3,1285.296387, -1641.934204, 12.690951, 2.5);
return 1;
}
//tore
Kann mir wer helfen?
MfG