ocmd:ptor(playerid,params[])
{
if(!SecretService(playerid)){
MoveObject(Secretgate, 1426.75, -1884.26, 0.07, 0.00, 0.00, 0.00, 5);
SendClientMessage(playerid,GRAU,"Tor Geöffnet es schliesst sich in 5 Seckunden wieder!");
SetTimer("stor", 5000, false);
}
return 1;
}
Der Timer:
public stor()
{
print("sadasdsad Gestartet");
MoveObject(Secretgate, 1426.75, -1884.26, 15.07, 0.00, 0.00, 0.00, 5);
}